Skip to content
Snippets Groups Projects
Commit 4c53eabc authored by SteelT's avatar SteelT
Browse files

Reword the error to be more consistent with other errors

parent 7d45a7c9
No related branches found
No related tags found
No related merge requests found
...@@ -340,7 +340,7 @@ static int lib_getSkinSprite(lua_State *L) ...@@ -340,7 +340,7 @@ static int lib_getSkinSprite(lua_State *L)
playersprite_t i = luaL_checkinteger(L, 2); playersprite_t i = luaL_checkinteger(L, 2);
if (i < 0 || i >= NUMPLAYERSPRITES*2) if (i < 0 || i >= NUMPLAYERSPRITES*2)
return luaL_error(L, "skin.sprites[] index %d out of range (0 - %d)", i, (NUMPLAYERSPRITES*2)-1); return luaL_error(L, LUA_QL("skin_t") " field 'sprites' index %d out of range (0 - %d)", i, (NUMPLAYERSPRITES*2)-1);
LUA_PushLightUserdata(L, &sprites[i], META_SKINSPRITESLIST); LUA_PushLightUserdata(L, &sprites[i], META_SKINSPRITESLIST);
return 1; return 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment