mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-23 00:40:04 +00:00
lua: Fix Range:contains(Frame)
This commit is contained in:
parent
bf916fe029
commit
44205c8121
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user