From d6b5f8428ae3494f4455afe4f0ac34eb17f68811 Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Tue, 28 Feb 2017 17:47:41 -0500 Subject: [PATCH] Fix popping one value too many in [animate_unit] --- src/scripting/game_lua_kernel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripting/game_lua_kernel.cpp b/src/scripting/game_lua_kernel.cpp index d0361f9ac8eb..bfc692522885 100644 --- a/src/scripting/game_lua_kernel.cpp +++ b/src/scripting/game_lua_kernel.cpp @@ -379,7 +379,7 @@ static int impl_add_animation(lua_State* L) lua_pop(L, 1); lua_rawgeti(L, -1, 2); v2 = lua_tonumber(L, -1); - lua_pop(L, 2); + lua_pop(L, 1); } else if(!lua_isnoneornil(L, -1)) { return luaW_type_error(L, -1, "number or array of two numbers"); }