mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2024-12-29 08:15:36 +03:00
Static analysis fix:
Warning V792: The 'HasCondition' function located to the right of the operator '|' will be called regardless of the value of the left operand.
This commit is contained in:
parent
0d8dceea43
commit
ddea3f3853
@ -1257,7 +1257,7 @@ int CAI_AssaultBehavior::TranslateSchedule( int scheduleType )
|
||||
break;
|
||||
|
||||
case SCHED_HOLD_RALLY_POINT:
|
||||
if( HasCondition(COND_NO_PRIMARY_AMMO) | HasCondition(COND_LOW_PRIMARY_AMMO) )
|
||||
if( HasCondition(COND_NO_PRIMARY_AMMO) || HasCondition(COND_LOW_PRIMARY_AMMO) )
|
||||
{
|
||||
return SCHED_RELOAD;
|
||||
}
|
||||
|
@ -1257,7 +1257,7 @@ int CAI_AssaultBehavior::TranslateSchedule( int scheduleType )
|
||||
break;
|
||||
|
||||
case SCHED_HOLD_RALLY_POINT:
|
||||
if( HasCondition(COND_NO_PRIMARY_AMMO) | HasCondition(COND_LOW_PRIMARY_AMMO) )
|
||||
if( HasCondition(COND_NO_PRIMARY_AMMO) || HasCondition(COND_LOW_PRIMARY_AMMO) )
|
||||
{
|
||||
return SCHED_RELOAD;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user