Core/Players: Fixed crash when creating demon hunters
Port From (https://github.com/TrinityCore/TrinityCore/commit/a6233982d22fe3a8c417c28897dcdb0b511df3ff)
This commit is contained in:
@@ -628,6 +628,9 @@ namespace Game.Entities
|
||||
if (itemTemplate == null)
|
||||
return false;
|
||||
|
||||
if (!_owner.GetPlayer())
|
||||
return false;
|
||||
|
||||
if (_owner.GetPlayer().CanUseItem(itemTemplate) != InventoryResult.Ok)
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user