Fix invalid read of boolean after dialog dismissed
This commit is contained in:
1 parent
c2e599f91e
commit
05f634228e
1 file changed
+2
-1
@@ -209,6 +209,7 @@ GUIEngine::EventPropagation
|
||||
|
||||
if (selection == "exit")
|
||||
{
|
||||
bool from_overworld = m_from_overworld;
|
||||
ModalDialog::dismiss();
|
||||
if (STKHost::existHost())
|
||||
{
|
||||
@@ -228,7 +229,7 @@ GUIEngine::EventPropagation
|
||||
StateManager::get()->resetAndGoToScreen(MainMenuScreen::getInstance());
|
||||
|
||||
// Pause story mode timer when quitting story mode
|
||||
if (m_from_overworld)
|
||||
if (from_overworld)
|
||||
story_mode_timer->pauseTimer(/*loading screen*/ false);
|
||||
|
||||
if (race_manager->raceWasStartedFromOverworld())
|
||||
|
||||
Reference in new issue
Block a user