2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-13 10:06:10 +00:00

CIceSheegoth: Add missing reference ampersands to IsClosestSheegoth()

Same behavior, but doesn't make copies of the vector and
reserved_vector (the reserved vector in particular is 2056 bytes in size
and this function is called in a loop, so this can have quite an
impact).
This commit is contained in:
Lioncash
2020-06-11 10:27:58 -04:00
parent 5f899b6c6c
commit 17ed0794e9
2 changed files with 5 additions and 6 deletions

View File

@@ -186,8 +186,8 @@ class CIceSheegoth : public CPatterned {
void UpdateAttackPosition(CStateManager& mgr, zeus::CVector3f& attackPos);
zeus::CVector3f GetEnergyAttractionPos(CStateManager& mgr) const;
bool ShouldAttractProjectile(const CGameProjectile& proj, CStateManager& mgr) const;
bool IsClosestSheegoth(CStateManager& mgr, const rstl::reserved_vector<TUniqueId, 1024> nearList,
const zeus::CVector3f projectileOffset) const;
bool IsClosestSheegoth(CStateManager& mgr, const rstl::reserved_vector<TUniqueId, 1024>& nearList,
const zeus::CVector3f& projectileOffset) const;
public:
DEFINE_PATTERNED(IceSheeegoth);