`CPed::GrantAmmo`, doesn't grant it
Frouk3 opened this issue · comments
it sets the ammo instead of granting it
simple change from =
to +=
Indeed, should be:
wepInSlot.m_nTotalAmmo = std::min(wepInSlot.m_nTotalAmmo + ammo, 99'999u); // Clamp upper
oh yeah, i just thought about the clamping