Core/Loot: Allocate Loot separately from objects
Port From (https://github.com/TrinityCore/TrinityCore/commit/7957e2d380e08fa831765f610c0e29d2f3e11a04)
This commit is contained in:
@@ -325,7 +325,7 @@ namespace Game.Chat
|
||||
}
|
||||
|
||||
Loot loot = creatureTarget.loot;
|
||||
if (!creatureTarget.IsDead() || loot.Empty())
|
||||
if (!creatureTarget.IsDead() || loot == null || loot.Empty())
|
||||
{
|
||||
handler.SendSysMessage(CypherStrings.CommandNotDeadOrNoLoot, creatureTarget.GetName());
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user