Skip to content

Commit eca89c1

Browse files
committed
Fix crash when game is shutting down
When game shuts down there is no reason to do anything with images
1 parent 3df252e commit eca89c1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Client/mods/deathmatch/logic/CClientIMG.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ bool CClientIMG::StreamEnable()
174174

175175
bool CClientIMG::StreamDisable()
176176
{
177-
if (!IsStreamed())
177+
// If game is shutting down or not streaming is not available, do nothing
178+
if (!g_pClientGame || !g_pGame || !g_pGame->GetStreaming())
178179
return false;
179180

180181
// Unlink all models

0 commit comments

Comments
 (0)