Skip to content

Commit

Permalink
Fix file lock after img:destroy() (#3367)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNormalnij authored May 23, 2024
1 parent 4a746ec commit c2ccfd2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Client/mods/deathmatch/logic/CClientIMG.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ CClientIMG::CClientIMG(class CClientManager* pManager, ElementID ID)
CClientIMG::~CClientIMG()
{
m_pImgManager->RemoveFromList(this);
Unlink();
}

void CClientIMG::Unlink()
{
if (IsStreamed())
StreamDisable();

Expand Down
2 changes: 1 addition & 1 deletion Client/mods/deathmatch/logic/CClientIMG.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class CClientIMG : public CClientEntity
CClientIMG(class CClientManager* pManager, ElementID ID);
~CClientIMG();

void Unlink(){};
void Unlink();
void GetPosition(CVector& vecPosition) const {};
void SetPosition(const CVector& vecPosition){};

Expand Down

0 comments on commit c2ccfd2

Please sign in to comment.