Skip to content

Commit

Permalink
Make sure g_timegetter is initalised before running speedtests
Browse files Browse the repository at this point in the history
Thanks @SmallJoker for noticing the issue
  • Loading branch information
Zeno- committed Mar 29, 2015
1 parent 3410101 commit e1475bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/client/clientlauncher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ bool ClientLauncher::run(GameParams &game_params, const Settings &cmd_args)
return false;
}

// Create time getter
g_timegetter = new IrrlichtTimeGetter(device);

// Speed tests (done after irrlicht is loaded to get timer)
if (cmd_args.getFlag("speedtests")) {
dstream << "Running speed tests" << std::endl;
Expand All @@ -102,9 +105,6 @@ bool ClientLauncher::run(GameParams &game_params, const Settings &cmd_args)
*/
//driver->setMinHardwareBufferVertexCount(50);

// Create time getter
g_timegetter = new IrrlichtTimeGetter(device);

// Create game callback for menus
g_gamecallback = new MainGameCallback(device);

Expand Down

0 comments on commit e1475bd

Please sign in to comment.