mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Pets: Fixed client crashes when logging in with a pet active
Closes #17848
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user