- cleaned up compiler warning
This commit is contained in:
parent
4692f41474
commit
61ffcf8252
|
@ -2812,7 +2812,7 @@ int ScriptManager::removeUnitFromGroupSelection(LuaHandle* luaHandle) {
|
||||||
|
|
||||||
int ScriptManager::setAttackWarningsEnabled(LuaHandle* luaHandle) {
|
int ScriptManager::setAttackWarningsEnabled(LuaHandle* luaHandle) {
|
||||||
LuaArguments luaArguments(luaHandle);
|
LuaArguments luaArguments(luaHandle);
|
||||||
thisScriptManager->setAttackWarningsEnabled(luaArguments.getInt(-1));
|
thisScriptManager->setAttackWarningsEnabled((luaArguments.getInt(-1) == 0 ? false : true));
|
||||||
return luaArguments.getReturnCount();
|
return luaArguments.getReturnCount();
|
||||||
}
|
}
|
||||||
int ScriptManager::getAttackWarningsEnabled(LuaHandle* luaHandle) {
|
int ScriptManager::getAttackWarningsEnabled(LuaHandle* luaHandle) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user