Core/Loot: Store references to Loot objects directly in players loot view map instead of guids of world objects holding that loot
Port From (https://github.com/TrinityCore/TrinityCore/commit/f19f32f2a49cf0eb235f1aa12106322bf9db2a15)
This commit is contained in:
@@ -815,6 +815,13 @@ namespace Game.Loots
|
||||
|
||||
PlayerNonQuestNonFFAConditionalItems.Clear();
|
||||
|
||||
foreach (ObjectGuid playerGuid in PlayersLooting)
|
||||
{
|
||||
Player player = Global.ObjAccessor.FindConnectedPlayer(playerGuid);
|
||||
if (player != null)
|
||||
player.GetSession().DoLootRelease(this);
|
||||
}
|
||||
|
||||
PlayersLooting.Clear();
|
||||
items.Clear();
|
||||
quest_items.Clear();
|
||||
|
||||
Reference in New Issue
Block a user