CLink: Simplify comparison operator

This commit is contained in:
Lioncache
2025-12-14 02:15:51 -05:00
parent 95f46dbc23
commit 3f7eb16b54

View File

@@ -142,19 +142,7 @@ public:
}
// Operators
bool operator==(const CLink& rkOther) const
{
return (mpArea == rkOther.mpArea) &&
(mStateID == rkOther.mStateID) &&
(mMessageID == rkOther.mMessageID) &&
(mSenderID == rkOther.mSenderID) &&
(mReceiverID == rkOther.mReceiverID);
}
bool operator!=(const CLink& rkOther) const
{
return (!(*this == rkOther));
}
bool operator==(const CLink&) const = default;
// Accessors
CGameArea* Area() const { return mpArea; }