fixed race condition

This commit is contained in:
Pawel Kolodziejski 2008-09-10 11:40:16 +00:00
parent 94dbb1a1da
commit 3d9029957e

View file

@ -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);