File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
GeneralsMD/Code/GameEngine/Source/GameLogic/AI
Generals/Code/GameEngine/Source/GameLogic/AI Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2599,7 +2599,7 @@ StateReturnType AIAttackApproachTargetState::updateInternal()
25992599#if RETAIL_COMPATIBLE_CRC
26002600 return STATE_FAILURE; // If obj is stealthed, can no longer approach.
26012601#else
2602- Bool isTargetingMine = weapon && weapon->getDamageType () == DAMAGE_DISARM &&
2602+ const Bool isTargetingMine = weapon && weapon->getDamageType () == DAMAGE_DISARM &&
26032603 (victim->isKindOf (KINDOF_MINE));
26042604
26052605 if (!isTargetingMine)
Original file line number Diff line number Diff line change @@ -2685,7 +2685,7 @@ StateReturnType AIAttackApproachTargetState::updateInternal()
26852685#if RETAIL_COMPATIBLE_CRC
26862686 return STATE_FAILURE; // If obj is stealthed, can no longer approach.
26872687#else
2688- Bool isTargetingMine = weapon && weapon->getDamageType () == DAMAGE_DISARM &&
2688+ const Bool isTargetingMine = weapon && weapon->getDamageType () == DAMAGE_DISARM &&
26892689 (victim->isKindOf (KINDOF_MINE) || victim->isKindOf (KINDOF_BOOBY_TRAP) || victim->isKindOf (KINDOF_DEMOTRAP));
26902690
26912691 if (!isTargetingMine)
You can’t perform that action at this time.
0 commit comments