Fixed love.graphics.newFont(filedata) causing crashes (resolves issue #1119).

This commit is contained in:
Alex Szpakowski
2016-01-05 19:59:29 -04:00
parent a590cf17aa
commit 9d6ff6e5de
+3
View File
@@ -85,7 +85,10 @@ int w_newTrueTypeRasterizer(lua_State *L)
love::Data *d = nullptr;
if (luax_istype(L, 1, DATA_ID))
{
d = luax_checkdata(L, 1);
d->retain();
}
else
d = filesystem::luax_getfiledata(L, 1);