Browse Source

Fix the explicit format + Data argument variant of love.data.decompress.

Alex Szpakowski 7 years ago
parent
commit
33177c9826
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

@@ -171,7 +171,7 @@ int w_decompress(lua_State *L)
 
 		if (luax_istype(L, 3, Data::type))
 		{
-			Data *data = luax_checktype<Data>(L, 2);
+			Data *data = luax_checktype<Data>(L, 3);
 			cbytes = (const char *) data->getData();
 			compressedsize = data->getSize();
 		}