- cleaned up compiler warning

This commit is contained in:
Mark Vejvoda 2012-10-22 06:44:38 +00:00
parent 4692f41474
commit 61ffcf8252
1 changed files with 1 additions and 1 deletions

View File

@ -2812,7 +2812,7 @@ int ScriptManager::removeUnitFromGroupSelection(LuaHandle* luaHandle) {
int ScriptManager::setAttackWarningsEnabled(LuaHandle* luaHandle) {
LuaArguments luaArguments(luaHandle);
thisScriptManager->setAttackWarningsEnabled(luaArguments.getInt(-1));
thisScriptManager->setAttackWarningsEnabled((luaArguments.getInt(-1) == 0 ? false : true));
return luaArguments.getReturnCount();
}
int ScriptManager::getAttackWarningsEnabled(LuaHandle* luaHandle) {