Fixed incorrect ammo calculation

This commit is contained in:
TjgL 2025-02-08 11:06:29 +01:00
parent f29a53d065
commit c4b08cfa24

View File

@ -29,6 +29,6 @@ struct FLMAmmoData : public FTableRowBase
*/ */
void AddAmmo(const int Quantity) void AddAmmo(const int Quantity)
{ {
AmmoCount += UKismetMathLibrary::Clamp(Quantity, 0, MaxAmmo); AmmoCount = UKismetMathLibrary::Clamp(AmmoCount + Quantity, 0, MaxAmmo);
} }
}; };