also allow nil here

This commit is contained in:
jacob1 2019-11-24 23:20:22 -05:00
parent 876a9b3096
commit 459790ffe0

View File

@ -398,7 +398,7 @@ int luacon_graphicsReplacement(GRAPHICS_FUNC_ARGS, int i)
{
bool valid = true;
for (int i = -10; i < 0; i++)
if (!lua_isnumber(luacon_ci->l, i))
if (!lua_isnumber(luacon_ci->l, i) && !lua_isnil(luacon_ci->l, i))
{
valid = false;
break;