Skip to content

Commit 1c277b5

Browse files
authored
Fix #3062: Fix missing file close call during IMG unloading (#3063)
1 parent 94c16e1 commit 1c277b5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Client/mods/deathmatch/logic/CClientIMG.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ CClientIMG::~CClientIMG()
3232
m_pImgManager->RemoveFromList(this);
3333
if (IsStreamed())
3434
StreamDisable();
35+
36+
if (m_ifs.is_open())
37+
Unload();
3538
}
3639

3740
bool CClientIMG::Load(fs::path filePath)

0 commit comments

Comments
 (0)