mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix range print for getter error (setter was caught ahead of time)
This commit is contained in:
parent
8b045a8f15
commit
ef055773e7
1 changed files with 1 additions and 1 deletions
|
|
@ -1043,7 +1043,7 @@ static int lib_getluabanks(lua_State *L)
|
|||
return luaL_error(L, "luabanks[] invalid index");
|
||||
|
||||
if (i >= NUM_LUABANKS)
|
||||
luaL_error(L, "luabanks[] index %d out of range (%d - %d)", i, 0, NUM_LUABANKS);
|
||||
luaL_error(L, "luabanks[] index %d out of range (%d - %d)", i, 0, NUM_LUABANKS-1);
|
||||
|
||||
lua_pushinteger(L, luabanks[i]);
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue