mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Return explicitly when failing to register a metatable
This commit is contained in:
parent
88408619aa
commit
69781faa42
1 changed files with 1 additions and 1 deletions
|
|
@ -257,7 +257,7 @@ static int lib_registerMetatable(lua_State *L)
|
|||
luaL_checktype(L, 1, LUA_TTABLE);
|
||||
|
||||
if (nextid == 0)
|
||||
luaL_error(L, "Too many metatables registered?! Please consider rewriting your script once you are sober again.\n");
|
||||
return luaL_error(L, "Too many metatables registered?! Please consider rewriting your script once you are sober again.\n");
|
||||
|
||||
lua_getfield(L, LUA_REGISTRYINDEX, LREG_METATABLES); // 2
|
||||
// registry.metatables[metatable] = nextid
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue