Skip to content

Commit

Permalink
UPBGE: Fix python main loop.
Browse files Browse the repository at this point in the history
The python main loop is using PythonMainLoopState struct to get the launcher
and set the exit info, but the launcher wasn't set.
  • Loading branch information
panzergame committed Aug 19, 2018
1 parent f1e625c commit 4a5055c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/gameengine/Launcher/LA_Launcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,7 @@ KX_ExitInfo LA_Launcher::EngineMainLoop()
KX_SetActiveScene(m_kxStartScene);

PythonMainLoopState state;
state.m_launcher = this;
pynextframestate.state = &state;
pynextframestate.func = &PythonEngineNextFrame;

Expand Down

0 comments on commit 4a5055c

Please sign in to comment.