CDrone: ShouldAttack uses return value of AddRangedAttacker

This commit is contained in:
Luke Street 2020-09-13 20:39:45 -04:00
parent a1019e2c94
commit 21b04bf40d
1 changed files with 1 additions and 1 deletions

View File

@ -823,7 +823,7 @@ bool CDrone::ShouldAttack(CStateManager& mgr, float arg) {
return false; return false;
if (TCastToPtr<CTeamAiMgr> teamMgr = mgr.ObjectById(x688_teamMgr)) { if (TCastToPtr<CTeamAiMgr> teamMgr = mgr.ObjectById(x688_teamMgr)) {
if (teamMgr->HasTeamAiRole(GetUniqueId())) if (teamMgr->HasTeamAiRole(GetUniqueId()))
teamMgr->AddRangedAttacker(GetUniqueId()); return teamMgr->AddRangedAttacker(GetUniqueId());
} }
return true; return true;
} }