From 05a9b31187c0a75b30d9cbe16b7c8874811864ba Mon Sep 17 00:00:00 2001 From: Grinch_ Date: Wed, 1 Dec 2021 01:35:56 +0600 Subject: [PATCH] [III] Fix crash with change skin --- src/player.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/player.cpp b/src/player.cpp index bc76338..3eb3fc0 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -350,6 +350,7 @@ void Player::ChangePlayerModel(std::string& cat, std::string& key, std::string& int imodel = std::stoi(val); CStreaming::RequestModel(imodel, eStreamingFlags::PRIORITY_REQUEST); CStreaming::LoadAllRequestedModels(true); + player->DeleteRwObject(); player->SetModelIndex(imodel); CStreaming::SetModelIsDeletable(imodel); }