Bugfix Stamina Not Being Used

This commit is contained in:
Philip W 2024-03-13 22:03:55 +00:00
parent 3b41b28b4c
commit 7b26664218
3 changed files with 5 additions and 5 deletions

View File

@ -129,7 +129,7 @@ void AEndlessVendettaCharacter::Tick(float DeltaTime)
{
if (bIsPlayerSprinting)
{
CurrentStamina -= FMath::Clamp(StaminaDecreaseRate, 0.0f, 100.0f);
CurrentStamina = FMath::Clamp(CurrentStamina - StaminaDecreaseRate, 0.0f, 100.0f);
if (CurrentStamina <= 0.0f)
{
bIsPlayerSprinting = false;