Skip to content

Commit 4a5055c

Browse files
committed
UPBGE: Fix python main loop.
The python main loop is using PythonMainLoopState struct to get the launcher and set the exit info, but the launcher wasn't set.
1 parent f1e625c commit 4a5055c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/gameengine/Launcher/LA_Launcher.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,7 @@ KX_ExitInfo LA_Launcher::EngineMainLoop()
498498
KX_SetActiveScene(m_kxStartScene);
499499

500500
PythonMainLoopState state;
501+
state.m_launcher = this;
501502
pynextframestate.state = &state;
502503
pynextframestate.func = &PythonEngineNextFrame;
503504

0 commit comments

Comments
 (0)