Fix profiling mode of stk

This commit is contained in:
Benau
2019-11-02 00:07:10 +08:00
parent 2700162d1f
commit 5c9df8d9a2

View File

@@ -2323,6 +2323,10 @@ int main(int argc, char *argv[])
}
#endif
// Create the story mode timer before going in the main loop
// as it needs to be able to run continuously
story_mode_timer = new StoryModeTimer();
// Replay a race
// =============
if(history->replayHistory())
@@ -2362,10 +2366,6 @@ int main(int argc, char *argv[])
race_manager->startNew(false);
}
// Create the story mode timer before going in the main loop
// as it needs to be able to run continuously
story_mode_timer = new StoryModeTimer();
main_loop->run();
} // try