diff --git a/source/glest_game/game/script_manager.cpp b/source/glest_game/game/script_manager.cpp index ccf80d3e..b34bd7e7 100644 --- a/source/glest_game/game/script_manager.cpp +++ b/source/glest_game/game/script_manager.cpp @@ -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) {