diff options
Diffstat (limited to 'src/genworld.cpp')
-rw-r--r-- | src/genworld.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/genworld.cpp b/src/genworld.cpp index 2ff8f3674..1580dc410 100644 --- a/src/genworld.cpp +++ b/src/genworld.cpp @@ -300,7 +300,7 @@ void GenerateWorld(GenerateWorldMode mode, uint size_x, uint size_y) } if (BlitterFactoryBase::GetCurrentBlitter()->GetScreenDepth() == 0 || - (_gw.thread = ThreadObject::New(&_GenerateWorld, NULL)) == NULL) { + !ThreadObject::New(&_GenerateWorld, NULL, &_gw.thread)) { DEBUG(misc, 1, "Cannot create genworld thread, reverting to single-threaded mode"); _gw.threaded = false; _GenerateWorld(NULL); |