From 2a3af0a501c2374119970c0511e1fc23b204b8d4 Mon Sep 17 00:00:00 2001 From: Erik Schilling Date: Sun, 29 Sep 2013 14:33:39 +0200 Subject: Fixed parameters of setting global cooldown --- src/scripting/lua.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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()->setGlobalCooldown(ticks); return 0; } -- cgit v1.2.3-70-g09d2