fix: faction changes not allowing updated targets (#1437)

* fix faction change issue

fixes an issue where enemies who would have their faction changed would not change aggro targets.

Tested that stromling mechs and ronin/horsemen in forbidden valley still aggro on spawn as expected.

* use erase remove if
This commit is contained in:
David Markowitz
2024-01-28 23:52:59 -08:00
committed by GitHub
parent 54ded62757
commit 2f247b1fc9
2 changed files with 12 additions and 22 deletions

View File

@@ -293,7 +293,7 @@ public:
/*
* Collision
*/
std::vector<LWOOBJID>& GetTargetsInPhantom();
std::vector<LWOOBJID> GetTargetsInPhantom();
Entity* GetScheduledKiller() { return m_ScheduleKiller; }