fix(vehicle fix all): fix incorrectly fixing everyone vehicles instead of only the targeted one (#2332)

This commit is contained in:
Quentin 2023-10-23 20:56:13 +02:00 committed by GitHub
parent 0c550f158b
commit da028f03b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,7 +70,7 @@ namespace big
{
g_player_service->iterate([](const player_entry& entry) {
if (entry.second->fix_vehicle)
g_pointers->m_gta.m_give_pickup_rewards(-1, REWARD_VEHICLE_FIX);
g_pointers->m_gta.m_give_pickup_rewards(1 << entry.second->id(), REWARD_VEHICLE_FIX);
});
}
}