CIceSheegoth: Mark IsMouthCollider() as a const member function

This doesn't modify internal member state, so we can mark this as const.
This commit is contained in:
Lioncash 2020-06-11 10:23:31 -04:00
parent 3352f0e812
commit 5f899b6c6c
1 changed files with 2 additions and 2 deletions

View File

@ -148,8 +148,8 @@ class CIceSheegoth : public CPatterned {
bool xb29_29_scanned : 1 = false;
void UpdateTouchBounds();
bool IsMouthCollider(TUniqueId uid) { return xaf8_mouthCollider == uid; }
bool IsGillCollider(const CEntity* ent) const {
[[nodiscard]] bool IsMouthCollider(TUniqueId uid) const { return xaf8_mouthCollider == uid; }
[[nodiscard]] bool IsGillCollider(const CEntity* ent) const {
return std::find_if(xafc_gillColliders.cbegin(), xafc_gillColliders.cend(),
[&ent](TUniqueId uid) { return uid == ent->GetUniqueId(); }) != xafc_gillColliders.cend();
}