mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-27 14:10:47 +00:00
lua_infolib.c: replace lua_objlen with luaL_getn in setRamp()
This commit is contained in:
parent
4ae7a0e093
commit
be5ca1a4fb
1 changed files with 1 additions and 1 deletions
|
@ -1662,7 +1662,7 @@ static void setRamp(lua_State *L, skincolor_t* c) {
|
||||||
lua_pushnil(L);
|
lua_pushnil(L);
|
||||||
for (i=0; i<COLORRAMPSIZE; i++) {
|
for (i=0; i<COLORRAMPSIZE; i++) {
|
||||||
if (lua_objlen(L,-2)!=COLORRAMPSIZE) {
|
if (lua_objlen(L,-2)!=COLORRAMPSIZE) {
|
||||||
luaL_error(L, LUA_QL("skincolor_t") " field 'ramp' must be %d entries long; got %d.", COLORRAMPSIZE, lua_objlen(L,-2));
|
luaL_error(L, LUA_QL("skincolor_t") " field 'ramp' must be %d entries long; got %d.", COLORRAMPSIZE, luaL_getn(L,-2));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (lua_next(L, -2) != 0) {
|
if (lua_next(L, -2) != 0) {
|
||||||
|
|
Loading…
Reference in a new issue