Implemented ObjectGuid support for AzerothCore.

This commit is contained in:
UltraNix
2021-04-21 19:55:37 +02:00
parent ca5f1bb59d
commit c4383324fb
19 changed files with 206 additions and 181 deletions

View File

@@ -251,10 +251,10 @@ template <typename T>
struct UniqueObjectKey
{
T event_id;
uint64 guid;
ObjectGuid guid;
uint32 instance_id;
UniqueObjectKey(T event_id, uint64 guid, uint32 instance_id) :
UniqueObjectKey(T event_id, ObjectGuid guid, uint32 instance_id) :
event_id(event_id),
guid(guid),
instance_id(instance_id)
@@ -367,7 +367,7 @@ namespace std
hash_helper::result_type operator()(argument_type const& k) const
{
return hash_helper::hash(k.event_id, k.instance_id, k.guid);
return hash_helper::hash(k.event_id, k.instance_id, k.guid.GetRawValue());
}
};
}