Skip to content
Snippets Groups Projects
Commit 73715665 authored by LJ Sonic's avatar LJ Sonic
Browse files

Fix error message for too long sprite names

parent dc3436df
Branches
No related tags found
No related merge requests found
......@@ -62,7 +62,7 @@ static inline int lib_freeslot(lua_State *L)
spritenum_t j;
if (strlen(word) > MAXSPRITENAME)
return luaL_error(L, "Sprite name is longer than %s characters\n", sizeu1(strlen(word)));
return luaL_error(L, "Sprite name is longer than %d characters\n", MAXSPRITENAME);
for (j = SPR_FIRSTFREESLOT; j <= SPR_LASTFREESLOT; j++)
{
......
......@@ -441,7 +441,7 @@ void readfreeslots(MYFILE *f)
else if (fastcmp(type, "SPR"))
{
if (strlen(word) > MAXSPRITENAME)
I_Error("Sprite name is longer than %s characters\n", sizeu1(strlen(word)));
I_Error("Sprite name is longer than %d characters\n", MAXSPRITENAME);
for (i = SPR_FIRSTFREESLOT; i <= SPR_LASTFREESLOT; i++)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment