Fix range print for getter error (setter was caught ahead of time)

This commit is contained in:
toaster 2019-08-24 22:56:20 +01:00
parent 4e256b73b2
commit b746ef66ac
1 changed files with 1 additions and 1 deletions

View File

@ -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;