lua: Fix Range:contains(Frame)

This commit is contained in:
David Capello 2018-11-23 14:26:12 -03:00
parent bf916fe029
commit 44205c8121

View File

@ -116,7 +116,7 @@ void push_sprite_frame(lua_State* L, Sprite* sprite, frame_t frame)
doc::frame_t get_frame_number_from_arg(lua_State* L, int index)
{
auto obj = may_get_obj<FrameObj>(L, 1);
auto obj = may_get_obj<FrameObj>(L, index);
if (obj)
return obj->frame;
else