Skip to content

Commit

Permalink
Fix the Data object variant of File:write.
Browse files Browse the repository at this point in the history
Fixes #1962
  • Loading branch information
slime73 committed Aug 21, 2023
1 parent 6e80d85 commit b0e3246
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/filesystem/wrap_File.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit b0e3246

Please sign in to comment.