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:
Ian Brun 2020-09-09 02:35:31 +02:00
parent 0d8dceea43
commit ddea3f3853
2 changed files with 2 additions and 2 deletions

View File

@ -1257,7 +1257,7 @@ int CAI_AssaultBehavior::TranslateSchedule( int scheduleType )
break; break;
case SCHED_HOLD_RALLY_POINT: 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; return SCHED_RELOAD;
} }

View File

@ -1257,7 +1257,7 @@ int CAI_AssaultBehavior::TranslateSchedule( int scheduleType )
break; break;
case SCHED_HOLD_RALLY_POINT: 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; return SCHED_RELOAD;
} }