fix(Core/Loot): Fix crash for round robin loot mode when solving quest item for offline loot owner. (#20033)

This commit is contained in:
Anton Popovichenko
2024-09-24 13:21:38 +02:00
committed by GitHub
parent 537bfb016e
commit 7dd460581d

View File

@@ -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;
}