[-]Fixed chashes introduced in rev.8259
This commit is contained in:
parent
941c173193
commit
0c641ff157
4 changed files with 1 additions and 4 deletions
src
|
@ -642,7 +642,6 @@ void InitTriggers()
|
|||
|
||||
lua_getglobal(Lua, "_triggers_");
|
||||
if (lua_isnil(Lua, -1)) {
|
||||
lua_pop(Lua, 1);
|
||||
lua_getglobal(Lua, "SinglePlayerTriggers");
|
||||
LuaCall(0, 1);
|
||||
}
|
||||
|
|
|
@ -95,7 +95,6 @@ void CheckMusicFinished(bool force)
|
|||
} else {
|
||||
LuaCall(0, 1);
|
||||
}
|
||||
lua_pop(Lua, 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -504,7 +504,6 @@ bool HandleCommandKey(int key)
|
|||
|
||||
lua_getglobal(Lua, "HandleCommandKey");
|
||||
if (!lua_isfunction(Lua, -1)) {
|
||||
lua_pop(Lua, 1);
|
||||
DebugPrint("No HandleCommandKey function in lua.\n");
|
||||
return false;
|
||||
}
|
||||
|
@ -779,7 +778,6 @@ int HandleCheats(const std::string &input)
|
|||
int base = lua_gettop(Lua);
|
||||
lua_getglobal(Lua, "HandleCheats");
|
||||
if (!lua_isfunction(Lua, -1)) {
|
||||
lua_pop(Lua, 1);
|
||||
DebugPrint("No HandleCheats function in lua.\n");
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -260,6 +260,7 @@ void UpdateStats(int reset)
|
|||
MapFieldBuilding |
|
||||
MapFieldCoastAllowed |
|
||||
MapFieldWaterAllowed |
|
||||
MapFieldNoBuilding |
|
||||
MapFieldUnpassable;
|
||||
type.FieldFlags = MapFieldNoBuilding;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue