Skip to content

Commit

Permalink
Keep main script in to be executed before custom scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
MiranDMC committed Nov 23, 2024
1 parent de687b2 commit cad89e8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/CScriptEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,13 @@ namespace CLEO

GetInstance().ModuleSystem.LoadCleoModules();
LoadState(GetInstance().saveSlot);

// keep main script as first to be exected
CRunningScript* main = *activeThreadQueue;
RemoveScriptFromQueue(main, activeThreadQueue);

LoadCustomScripts();
AddScriptToQueue(main, activeThreadQueue);
}

void CScriptEngine::GameEnd()
Expand Down

0 comments on commit cad89e8

Please sign in to comment.