mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
Fixed bug where file was left open when doing a love.filesystem.read.
This commit is contained in:
@@ -236,10 +236,9 @@ namespace physfs
|
||||
{
|
||||
// Create the file.
|
||||
file = newFile(lua_tostring(L, 1));
|
||||
file->open(File::READ);
|
||||
}
|
||||
else
|
||||
return luaL_error(L, "Expected filename.");
|
||||
return luaL_error(L, "Expected filename.");
|
||||
|
||||
// Optionally, the caller can specify whether to read
|
||||
// the whole file, or just a part of it.
|
||||
|
||||
Reference in New Issue
Block a user