mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Return nil on skincolor invalid field access
This commit is contained in:
parent
50192f59ff
commit
d992b52577
1 changed files with 3 additions and 1 deletions
|
|
@ -1635,8 +1635,10 @@ static int skincolor_get(lua_State *L)
|
||||||
lua_pushinteger(L, info->chatcolor);
|
lua_pushinteger(L, info->chatcolor);
|
||||||
else if (fastcmp(field,"accessible"))
|
else if (fastcmp(field,"accessible"))
|
||||||
lua_pushboolean(L, info->accessible);
|
lua_pushboolean(L, info->accessible);
|
||||||
else
|
else {
|
||||||
CONS_Debug(DBG_LUA, M_GetText("'%s' has no field named '%s'; returning nil.\n"), "skincolor_t", field);
|
CONS_Debug(DBG_LUA, M_GetText("'%s' has no field named '%s'; returning nil.\n"), "skincolor_t", field);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue