mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Fix love.data.decompress when passing in a CompressedData.
This commit is contained in:
@@ -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); });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user