check spr2names not sprnames, whoops

This commit is contained in:
Monster Iestyn 2017-05-13 21:43:04 +01:00
parent c2f03c5953
commit d91471b053

View file

@ -434,7 +434,7 @@ static int libd_getSprite2Patch(lua_State *L)
{
const char *name = lua_tostring(L, 1);
for (j = 0; j < free_spr2; j++)
if (fastcmp(name, sprnames[j]))
if (fastcmp(name, spr2names[j]))
break;
if (j >= free_spr2)
return 0;