Skip to content
Permalink
Browse files

Make sure g_timegetter is initalised before running speedtests

Thanks @SmallJoker for noticing the issue
  • Loading branch information
Zeno- committed Mar 29, 2015
1 parent 3410101 commit e1475bdc89be77ba4bf73ecf25ec1be5e0578f09
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/client/clientlauncher.cpp
@@ -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;
@@ -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);

0 comments on commit e1475bd

Please sign in to comment.
You can’t perform that action at this time.