Core/Pets: Fixed client crashes when logging in with a pet active

Closes #17848
This commit is contained in:
Shauren
2016-08-27 00:14:25 +02:00
parent 9b80805d69
commit 42a678c09f

View File

@@ -302,6 +302,7 @@ bool Pet::LoadPetFromDB(Player* owner, uint32 petEntry, uint32 petnumber, bool c
castData.CasterGUID = owner->GetGUID();
castData.CasterUnit = owner->GetGUID();
castData.CastID = ObjectGuid::Create<HighGuid::Cast>(SPELL_CAST_SOURCE_NORMAL, summonSpellId, map->GenerateLowGuid<HighGuid::Cast>());
castData.SpellID = summonSpellId;
castData.CastFlags = CAST_FLAG_UNKNOWN_9;
castData.CastTime = getMSTime();