diff --git a/src/modules/font/wrap_Font.cpp b/src/modules/font/wrap_Font.cpp index 1ed3149a1..ffbb720fe 100644 --- a/src/modules/font/wrap_Font.cpp +++ b/src/modules/font/wrap_Font.cpp @@ -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(L, 2);