Fixed the error message when only one argument is given to newImageFont (resolves issue #737)

This commit is contained in:
Alex Szpakowski
2013-09-16 03:11:38 -03:00
parent d9cd10e29c
commit f89097ed90
@@ -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");
}