[III] Fix crash with change skin
This commit is contained in:
parent
f666797a15
commit
05a9b31187
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user