mirror of
https://github.com/edubart/otclient.git
synced 2025-10-19 22:13:27 +02:00
use exceptions in FML
This commit is contained in:
@@ -118,7 +118,7 @@ bool Resources::loadFile(const std::string& fileName, std::iostream& out)
|
||||
char *buffer = new char[fileSize];
|
||||
PHYSFS_read(file, (void*)buffer, 1, fileSize);
|
||||
out.write(buffer, fileSize);
|
||||
delete buffer;
|
||||
delete[] buffer;
|
||||
} else
|
||||
out.clear(std::ios::eofbit);
|
||||
PHYSFS_close(file);
|
||||
|
Reference in New Issue
Block a user