Fixed mission cars not being properly cleaned up. (#3434)
Some checks failed
Nightly Build / Check Recent Commit (push) Failing after 0s
Nightly Build / Build Nightly (push) Has been skipped
Nightly Build / Recreate Release (push) Has been skipped

This commit is contained in:
gir489 2024-07-26 17:29:49 -04:00 committed by GitHub
parent 995b381053
commit 43afdae9e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,6 +14,8 @@ namespace big
if (g_local_player && g_local_player->m_vehicle && g_local_player->m_vehicle->m_net_object
&& object_id == g_local_player->m_vehicle->m_net_object->m_object_id) [[unlikely]]
{
if (!NETWORK::NETWORK_IS_ACTIVITY_SESSION()) //If we're in Freemode.
{
if (auto plyr = g_player_service->get_by_id(src->m_player_id))
{
@ -21,6 +23,7 @@ namespace big
}
return;
}
}
if (auto object = g_pointers->m_gta.m_get_net_object(*g_pointers->m_gta.m_network_object_mgr, object_id, true)) [[likely]]
{