Added a comment in CondMinChargeTime about the crash fix

This commit is contained in:
smallmodel 2023-12-27 14:07:34 +01:00
parent cbeaeba828
commit 065ab98175
No known key found for this signature in database
GPG key ID: A96F163ED4891440

View file

@ -570,6 +570,8 @@ qboolean Player::CondMinChargeTime(Conditional& condition)
if (hand != WEAPON_ERROR) {
weap = GetActiveWeapon(hand);
// Fixed in 2.0.
// Make sure the active weapon is valid
if (weap) {
float charge_time = weap->GetMinChargeTime(FIRE_PRIMARY);
if (charge_time) {