mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-07 09:56:59 +00:00
lua: Fix Range_contains() when we ask for the first frame (which is doc::frame_t=0 internally)
This commit is contained in:
parent
ed7209e7c6
commit
2f76cbe15c
@ -96,7 +96,8 @@ int Range_contains(lua_State* L)
|
|||||||
else if (Cel* cel = may_get_docobj<Cel>(L, 2)) {
|
else if (Cel* cel = may_get_docobj<Cel>(L, 2)) {
|
||||||
result = obj->contains(cel);
|
result = obj->contains(cel);
|
||||||
}
|
}
|
||||||
else if (frame_t frame = get_frame_number_from_arg(L, 2)) {
|
else {
|
||||||
|
frame_t frame = get_frame_number_from_arg(L, 2);
|
||||||
result = obj->contains(frame);
|
result = obj->contains(frame);
|
||||||
}
|
}
|
||||||
lua_pushboolean(L, result);
|
lua_pushboolean(L, result);
|
||||||
|
Loading…
Reference in New Issue
Block a user