Fix love.font.newBMFontRasterizer when it's given a single file param.

This commit is contained in:
Sasha Szpakowski
2023-10-11 22:05:33 -03:00
parent 2deb6273c2
commit ba693500c4
+1 -1
View File
@@ -154,7 +154,7 @@ int w_newBMFontRasterizer(lua_State *L)
lua_pop(L, 1);
}
}
else
else if (!lua_isnoneornil(L, 2))
{
convimagedata(L, 2);
image::ImageData *id = luax_checktype<image::ImageData>(L, 2);