fix(Core/Loot): Fix crash for round robin loot mode when solving quest item for offline loot owner. (#20033)
This commit is contained in:
parent
537bfb016e
commit
7dd460581d
1 changed files with 3 additions and 1 deletions
|
|
@ -700,7 +700,9 @@ QuestItemList* Loot::FillQuestLoot(Player* player)
|
|||
}
|
||||
|
||||
// Player is not the loot owner, and loot owner still needs this quest item
|
||||
if (!item.freeforall && lootOwner != player && item.AllowedForPlayer(lootOwner, sourceWorldObjectGUID))
|
||||
if (!item.freeforall &&
|
||||
lootOwner && lootOwner != player &&
|
||||
item.AllowedForPlayer(lootOwner, sourceWorldObjectGUID))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue