fix player.get_camera
This commit is contained in:
parent
34ab3eb41c
commit
b5d7634601
@ -197,7 +197,7 @@ static int l_get_camera(lua::State* L) {
|
|||||||
if (found == level->cameras.end()) {
|
if (found == level->cameras.end()) {
|
||||||
return 0;
|
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) {
|
static int l_set_camera(lua::State* L) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user