Fix the Data object variant of File:write.

Fixes #1962
This commit is contained in:
Sasha Szpakowski
2023-08-21 16:50:28 -03:00
parent 6e80d85110
commit b0e3246ba8
+1 -1
View File
@@ -171,7 +171,7 @@ int w_File_write(lua_State *L)
try
{
love::Data *data = luax_totype<love::Data>(L, 2);
result = file->write(data, luaL_optinteger(L, 3, data->getSize()));
result = file->write(data->getData(), luaL_optinteger(L, 3, data->getSize()));
}
catch (love::Exception &e)
{