Fixed incorrect ammo calculation
This commit is contained in:
parent
f29a53d065
commit
c4b08cfa24
@ -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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user