fixed race condition
This commit is contained in:
parent
94dbb1a1da
commit
3d9029957e
1 changed files with 4 additions and 1 deletions
|
@ -1763,7 +1763,10 @@ static void MakeSectorActive() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
numSectors = g_engine->currScene()->getSectorCount();
|
if (g_engine->currScene())
|
||||||
|
numSectors = g_engine->currScene()->getSectorCount();
|
||||||
|
else
|
||||||
|
numSectors = 0;
|
||||||
|
|
||||||
if (lua_isstring(sectorName)) {
|
if (lua_isstring(sectorName)) {
|
||||||
const char *name = luaL_check_string(1);
|
const char *name = luaL_check_string(1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue