Fixed persist outfit thinking the player was showering when they were not (#2203)

* Fixed a crash emanating from mobile_service::register_vehicles if the vehicle needed to be refreshed.
This commit is contained in:
gir489
2023-09-27 03:41:24 -04:00
committed by GitHub
parent b7bac4dfe1
commit 207e5457f9
3 changed files with 41 additions and 4 deletions

View File

@ -358,8 +358,10 @@ namespace big
it->second = veh->get_display_name();
m_personal_vehicles.emplace(veh->get_display_name(), std::move(veh));
}
m_personal_vehicles[veh->get_display_name()]->set_garage();
else
{
m_personal_vehicles[veh->get_display_name()]->set_garage();
}
continue;
}