mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
Fixed the error message when only one argument is given to newImageFont (resolves issue #737)
This commit is contained in:
@@ -395,6 +395,7 @@ int w_newImageFont(lua_State *L)
|
||||
// Convert to Rasterizer if necessary.
|
||||
if (luax_istype(L, 1, IMAGE_IMAGE_DATA_T))
|
||||
{
|
||||
luaL_checkstring(L, 2);
|
||||
int idxs[] = {1, 2};
|
||||
luax_convobj(L, idxs, 2, "font", "newRasterizer");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user