From ba693500c439b7bf5d7b9bb2f8b34d7331793453 Mon Sep 17 00:00:00 2001 From: Sasha Szpakowski Date: Wed, 11 Oct 2023 22:05:33 -0300 Subject: [PATCH] Fix love.font.newBMFontRasterizer when it's given a single file param. --- src/modules/font/wrap_Font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);