Skip to content

Commit

Permalink
Fix popping one value too many in [animate_unit]
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Feb 28, 2017
1 parent 0978674 commit d6b5f84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripting/game_lua_kernel.cpp
Expand Up @@ -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");
}
Expand Down

0 comments on commit d6b5f84

Please sign in to comment.