diff options
| -rw-r--r-- | engines/testbed/misc.cpp | 3 | 
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/testbed/misc.cpp b/engines/testbed/misc.cpp index 70a0d88695..642e0b8ae2 100644 --- a/engines/testbed/misc.cpp +++ b/engines/testbed/misc.cpp @@ -30,7 +30,6 @@ Common::String MiscTests::getHumanReadableFormat(TimeDate &td) {  void MiscTests::timerCallback(void *arg) {  	// Increment arg which actually points to an int -	// arg must point to a static data, threads otherwise have their own stack  	int &valToModify = *((int *) arg);  	valToModify = 999; // some arbitrary value  } @@ -110,7 +109,7 @@ TestExitStatus MiscTests::testDateTime() {  }  TestExitStatus MiscTests::testTimers() { -	static int valToModify = 0; +	int valToModify = 0;  	if (g_system->getTimerManager()->installTimerProc(timerCallback, 100000, &valToModify)) {  		g_system->delayMillis(150);  		g_system->getTimerManager()->removeTimerProc(timerCallback);  | 
