Browse Source

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

Alex Szpakowski 7 years ago
parent
commit
68f561dcc7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/data/wrap_DataModule.cpp

+ 1 - 1
src/modules/data/wrap_DataModule.cpp

@@ -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); });
 	}