Skip to content

Commit af3251f

Browse files
committed
1.6: Fix build after 9273b0d (C++ 14)
1 parent 2143c99 commit af3251f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Client/game_sa/CStreamingSA.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,8 @@ void CStreamingSA::SetStreamingInfo(uint modelid, unsigned char usStreamID, uint
340340
// In this case, we must force-remove the RwObject from memory, because it is no longer used,
341341
// and due to the archive change the streamer no longer detects it and therefore won't delete it.
342342
// As a result, a memory leak occurs after every call to engineImageLinkDFF.
343-
if (CModelInfo* modelInfo = g_pCore->GetGame()->GetModelInfo(modelid); modelInfo->GetRwObject())
343+
CModelInfo* modelInfo = g_pCore->GetGame()->GetModelInfo(modelid);
344+
if (modelInfo->GetRwObject())
344345
RemoveModel(modelid);
345346

346347
// Change nextInImg field for prev model

0 commit comments

Comments
 (0)