From 88bf632f0372448b45b92c7da1bcc36d6301aad2 Mon Sep 17 00:00:00 2001 From: Uladzislau Nikalayevich Date: Sat, 23 Sep 2023 21:54:05 +0300 Subject: [PATCH] Update Client/game_sa/CModelInfoSA.cpp Co-authored-by: Marek Kulik --- Client/game_sa/CModelInfoSA.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Client/game_sa/CModelInfoSA.cpp b/Client/game_sa/CModelInfoSA.cpp index 5d1a433c16..da81fb4f23 100644 --- a/Client/game_sa/CModelInfoSA.cpp +++ b/Client/game_sa/CModelInfoSA.cpp @@ -821,8 +821,8 @@ void CModelInfoSA::StaticResetTextureDictionaries() } else { - // Model was dealocated. Skip it and remove from list - ms_DefaultTxdIDMap.erase(ms_DefaultTxdIDMap.begin()->first); + // Model was deallocated. Skip and remove it from our list. + ms_DefaultTxdIDMap.erase(ms_DefaultTxdIDMap.begin()); } } }