mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user