Skip to content

Commit b8a104a

Browse files
committed
Fix crash from Lua GC during ConsoleMan script update
1 parent 21e4a6a commit b8a104a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ void RunGameLoop() {
329329

330330
g_FrameMan.Update();
331331
g_LuaMan.Update();
332+
g_ConsoleMan.Update();
332333
g_ActivityMan.Update();
333334

334335
if (g_SceneMan.GetScene()) {
@@ -347,7 +348,6 @@ void RunGameLoop() {
347348
// It's in this spot to allow it to be set by UInputMan update and ConsoleMan update, and read from ActivityMan update.
348349
g_PresetMan.ClearReloadEntityPresetCalledThisUpdate();
349350

350-
g_ConsoleMan.Update();
351351
g_PerformanceMan.StopPerformanceMeasurement(PerformanceMan::SimTotal);
352352

353353
if (!g_ActivityMan.IsInActivity()) {

0 commit comments

Comments
 (0)