mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
fixed race condition
This commit is contained in:
+4
-1
@@ -1763,7 +1763,10 @@ static void MakeSectorActive() {
|
||||
return;
|
||||
}
|
||||
|
||||
numSectors = g_engine->currScene()->getSectorCount();
|
||||
if (g_engine->currScene())
|
||||
numSectors = g_engine->currScene()->getSectorCount();
|
||||
else
|
||||
numSectors = 0;
|
||||
|
||||
if (lua_isstring(sectorName)) {
|
||||
const char *name = luaL_check_string(1);
|
||||
|
||||
Reference in New Issue
Block a user