mirror of
https://github.com/edubart/otclient.git
synced 2025-10-17 13:03:27 +02:00
Fix market reload and a crash when exiting
This commit is contained in:
@@ -38,11 +38,10 @@ FileStream::FileStream(const std::string& name, PHYSFS_File *fileHandle, bool wr
|
||||
FileStream::~FileStream()
|
||||
{
|
||||
#ifndef NDEBUG
|
||||
if(g_app.isTerminated())
|
||||
g_logger.warning("FileStream reference not released");
|
||||
assert(!g_app.isTerminated());
|
||||
#endif
|
||||
if(!g_app.isTerminated())
|
||||
close();
|
||||
close();
|
||||
}
|
||||
|
||||
void FileStream::cache()
|
||||
|
Reference in New Issue
Block a user