diff --git a/src/util/guid/CHashKeyGUID.cpp b/src/util/guid/CHashKeyGUID.cpp index 7418c57..1e1f7a4 100644 --- a/src/util/guid/CHashKeyGUID.cpp +++ b/src/util/guid/CHashKeyGUID.cpp @@ -7,3 +7,11 @@ CHashKeyGUID::CHashKeyGUID() { CHashKeyGUID::CHashKeyGUID(WOWGUID guid) { this->m_guid = guid; } + +bool CHashKeyGUID::operator==(WOWGUID guid) const { + return this->m_guid == guid; +} + +bool CHashKeyGUID::operator==(const CHashKeyGUID& key) const { + return this->m_guid == key.m_guid; +} diff --git a/src/util/guid/CHashKeyGUID.hpp b/src/util/guid/CHashKeyGUID.hpp index 5ba0e4a..95399d1 100644 --- a/src/util/guid/CHashKeyGUID.hpp +++ b/src/util/guid/CHashKeyGUID.hpp @@ -9,6 +9,8 @@ class CHashKeyGUID { // Public member functions CHashKeyGUID(); CHashKeyGUID(WOWGUID guid); + bool operator==(WOWGUID guid) const; + bool operator==(const CHashKeyGUID& key) const; private: // Private member variables