File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ WeaponHaptic WeaponHapticsConfigManager::GetWeaponHaptics(WeaponType Weapon)
181181 haptic.TwoHand .Dominant = defaultHaptics;
182182 haptic.TwoHand .Nondominant = defaultHaptics;
183183
184- for (WeaponHaptic currentHaptic : hapticList)
184+ for (WeaponHaptic& currentHaptic : hapticList)
185185 {
186186 if (currentHaptic.Weapon == Weapon)
187187 {
@@ -198,7 +198,7 @@ WeaponHaptic WeaponHapticsConfigManager::GetWeaponHaptics(WeaponType Weapon)
198198 plasmaPistolSettings.RampUpTimer = 0 ;
199199 }
200200
201- double percentage = plasmaPistolSettings.RampUpTimer / plasmaPistolSettings.RampUpTicks ;
201+ double percentage = plasmaPistolSettings.RampUpTimer / std::max ( 1 , plasmaPistolSettings.RampUpTicks ) ;
202202
203203 double percentageOfChange = std::max (.2 , percentage);
204204
You can’t perform that action at this time.
0 commit comments