diff options
-rw-r--r-- | src/scripting/lua.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scripting/lua.cpp b/src/scripting/lua.cpp index 60b3e89c..7a38ea95 100644 --- a/src/scripting/lua.cpp +++ b/src/scripting/lua.cpp @@ -1312,7 +1312,7 @@ static int entity_get_ability_cooldown(lua_State *s) static int entity_set_global_ability_cooldown(lua_State *s) { Entity *c = checkCharacter(s, 1); - const int ticks = luaL_checkint(s, 3); + const int ticks = luaL_checkint(s, 2); c->getComponent<AbilityComponent>()->setGlobalCooldown(ticks); return 0; } |