mirror of
https://github.com/love2d/love.git
synced 2026-08-21 13:09:56 +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))
|
if (luax_istype(L, 2, CompressedData::type))
|
||||||
{
|
{
|
||||||
CompressedData *data = luax_checkcompresseddata(L, 1);
|
CompressedData *data = luax_checkcompresseddata(L, 2);
|
||||||
rawsize = data->getDecompressedSize();
|
rawsize = data->getDecompressedSize();
|
||||||
luax_catchexcept(L, [&](){ rawbytes = decompress(data, rawsize); });
|
luax_catchexcept(L, [&](){ rawbytes = decompress(data, rawsize); });
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user