Fix love.data.decompress when passing in a CompressedData.

This commit is contained in:
Alex Szpakowski
2018-01-08 15:34:46 +00:00
parent 6808968893
commit 68f561dcc7
+1 -1
View File
@@ -154,7 +154,7 @@ int w_decompress(lua_State *L)
if (luax_istype(L, 2, CompressedData::type))
{
CompressedData *data = luax_checkcompresseddata(L, 1);
CompressedData *data = luax_checkcompresseddata(L, 2);
rawsize = data->getDecompressedSize();
luax_catchexcept(L, [&](){ rawbytes = decompress(data, rawsize); });
}