Core/Pets: Fixed crash when summoning hunter pets

Port From (https://github.com/TrinityCore/TrinityCore/commit/074c5da6e43796a88ad34e8724362433d5109f88)
This commit is contained in:
hondacrx
2023-07-18 07:51:23 -04:00
parent e4111c7d22
commit fe9519f3b6
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -220,7 +220,7 @@ namespace Game.Entities
m_creatureInfo = creatureInfo;
SetEntry(entry);
m_creatureDifficulty = creatureInfo.GetDifficulty(GetMap().GetDifficultyID());
m_creatureDifficulty = creatureInfo.GetDifficulty(!IsPet() ? GetMap().GetDifficultyID() : Difficulty.None);
// equal to player Race field, but creature does not have race
SetRace(0);