Fixed a typo preventing compressed textures from being loaded into images

This commit is contained in:
Alex Szpakowski
2013-09-06 00:59:19 -03:00
parent 06f80d5c08
commit ef9f30d5c4
@@ -174,7 +174,7 @@ int w_newImage(lua_State *L)
else
data = luax_checktype<love::image::ImageData>(L, 1, "ImageData", IMAGE_IMAGE_DATA_T);
if (!data && !data)
if (!data && !cdata)
return luaL_error(L, "Error creating image.");
// Create the image.