fix player.get_camera

This commit is contained in:
MihailRis 2024-07-22 14:19:09 +03:00
parent 34ab3eb41c
commit b5d7634601

View File

@ -197,7 +197,7 @@ static int l_get_camera(lua::State* L) {
if (found == level->cameras.end()) {
return 0;
}
return lua::pushinteger(L, found - level->cameras.end());
return lua::pushinteger(L, found - level->cameras.begin());
}
static int l_set_camera(lua::State* L) {