[10745] Use ObjectGuid in spellauraholders instead uint64

(based on rsa's repo commit 06342c1)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
C:/Program Files (x86)/git/dev/rsa 2010-11-19 15:25:01 +03:00 committed by VladimirMangos
parent 62c448b466
commit 87b8a1d1ce
4 changed files with 38 additions and 37 deletions

View file

@ -15748,7 +15748,7 @@ void Player::_LoadAuras(QueryResult *result, uint32 timediff)
do
{
Field *fields = result->Fetch();
uint64 caster_guid = fields[0].GetUInt64();
ObjectGuid caster_guid = fields[0].GetUInt64();
uint32 item_lowguid = fields[1].GetUInt64();
uint32 spellid = fields[2].GetUInt32();
uint32 stackcount = fields[3].GetUInt32();
@ -15808,7 +15808,7 @@ void Player::_LoadAuras(QueryResult *result, uint32 timediff)
if (!holder->IsEmptyHolder())
{
// reset stolen single target auras
if (caster_guid != GetGUID() && holder->IsSingleTarget())
if (caster_guid != GetObjectGuid() && holder->IsSingleTarget())
holder->SetIsSingleTarget(false);
holder->SetLoadedState(caster_guid, ObjectGuid(HIGHGUID_ITEM, item_lowguid), stackcount, remaincharges);