diff --git a/src/app/script/range_class.cpp b/src/app/script/range_class.cpp index aa5cf4282..587c5a312 100644 --- a/src/app/script/range_class.cpp +++ b/src/app/script/range_class.cpp @@ -96,7 +96,8 @@ int Range_contains(lua_State* L) else if (Cel* cel = may_get_docobj(L, 2)) { 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); } lua_pushboolean(L, result);