mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 06:51:51 +00:00
fix player.get_camera
This commit is contained in:
parent
34ab3eb41c
commit
b5d7634601
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue