Skip to content

Commit 25a60ca

Browse files
authored
Update CRenderWareSA.cpp
1 parent 605e16d commit 25a60ca

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Client/game_sa/CRenderWareSA.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -679,10 +679,7 @@ void CRenderWareSA::TxdForceUnload(ushort usTxdId, bool bDestroyTextures)
679679
pGame->GetRenderWareSA()->GetTxdTextures(textureList, pTxd);
680680
for (std::vector<RwTexture*>::iterator iter = textureList.begin(); iter != textureList.end(); iter++)
681681
{
682-
RwTexture* pTexture = *iter;
683-
while (pTexture->refs > 1)
684-
RwTextureDestroy(pTexture);
685-
RwTextureDestroy(pTexture);
682+
RwTextureDestroy(*iter);
686683
}
687684
}
688685

0 commit comments

Comments
 (0)