Skip to content

Commit e1475bd

Browse files
committedMar 29, 2015
Make sure g_timegetter is initalised before running speedtests
Thanks @SmallJoker for noticing the issue
1 parent 3410101 commit e1475bd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

Diff for: ‎src/client/clientlauncher.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ bool ClientLauncher::run(GameParams &game_params, const Settings &cmd_args)
8181
return false;
8282
}
8383

84+
// Create time getter
85+
g_timegetter = new IrrlichtTimeGetter(device);
86+
8487
// Speed tests (done after irrlicht is loaded to get timer)
8588
if (cmd_args.getFlag("speedtests")) {
8689
dstream << "Running speed tests" << std::endl;
@@ -102,9 +105,6 @@ bool ClientLauncher::run(GameParams &game_params, const Settings &cmd_args)
102105
*/
103106
//driver->setMinHardwareBufferVertexCount(50);
104107

105-
// Create time getter
106-
g_timegetter = new IrrlichtTimeGetter(device);
107-
108108
// Create game callback for menus
109109
g_gamecallback = new MainGameCallback(device);
110110

0 commit comments

Comments
 (0)
Please sign in to comment.