diff options
author | Willem Jan Palenstijn | 2011-06-03 14:15:39 +0200 |
---|---|---|
committer | Willem Jan Palenstijn | 2011-06-03 14:15:39 +0200 |
commit | b16d6e8bb26e6c411e76c18afab104d535c57387 (patch) | |
tree | f607d5e3d7bceb390c363e38e528749c010b6ca2 | |
parent | 8b3c36cfad99bc40742552b954df4751c3dbd149 (diff) | |
download | scummvm-rg350-b16d6e8bb26e6c411e76c18afab104d535c57387.tar.gz scummvm-rg350-b16d6e8bb26e6c411e76c18afab104d535c57387.tar.bz2 scummvm-rg350-b16d6e8bb26e6c411e76c18afab104d535c57387.zip |
TESTBED: Get rid of static local variable
It's not only against our coding guidelines, but also breaks running the
mutex test multiple times. It may or may not also be responsible for a
MSVC9 build failure reported on IRC.
-rw-r--r-- | engines/testbed/misc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/testbed/misc.cpp b/engines/testbed/misc.cpp index 35b3c6bfe2..70a0d88695 100644 --- a/engines/testbed/misc.cpp +++ b/engines/testbed/misc.cpp @@ -132,7 +132,7 @@ TestExitStatus MiscTests::testMutexes() { Testsuite::writeOnScreen("Installing mutex", Common::Point(0, 100)); } - static SharedVars sv = {1, 1, true, g_system->createMutex()}; + SharedVars sv = {1, 1, true, g_system->createMutex()}; if (g_system->getTimerManager()->installTimerProc(criticalSection, 100000, &sv)) { g_system->delayMillis(150); |