[III] Fix crash with change skin

This commit is contained in:
Grinch_ 2021-12-01 01:35:56 +06:00
parent f666797a15
commit 05a9b31187

View File

@ -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);
}