From 9ae158b4e80859a68e4c2f6d6cd7e9e380242e20 Mon Sep 17 00:00:00 2001 From: MH261677 Date: Thu, 1 Feb 2024 17:24:33 +0000 Subject: [PATCH] Fixed BaseWeapon Recoil Crash Bug --- .../Source/EndlessVendetta/WeaponSystem/BaseWeaponClass.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/EndlessVendetta/Source/EndlessVendetta/WeaponSystem/BaseWeaponClass.cpp b/EndlessVendetta/Source/EndlessVendetta/WeaponSystem/BaseWeaponClass.cpp index 2c2b3c73..81cc1fcf 100644 --- a/EndlessVendetta/Source/EndlessVendetta/WeaponSystem/BaseWeaponClass.cpp +++ b/EndlessVendetta/Source/EndlessVendetta/WeaponSystem/BaseWeaponClass.cpp @@ -101,6 +101,7 @@ void ABaseWeaponClass::GenerateRecoilVector() void ABaseWeaponClass::ApplyRecoil(float DeltaTime) { + if (!endlessVendettaChar->bHasRifle) return; if (recoilTime < 0.3) { float amplitude = RecoilCurve->GetFloatValue(recoilTime); //get current value of curve in time