From e03406b10369e68e07d94fa046b245bdb07a06c3 Mon Sep 17 00:00:00 2001 From: Hudson Date: Thu, 6 Apr 2023 13:43:11 -0500 Subject: [PATCH] fixed a bug where if a group member picks up an item, then the player picks up an item, it would display the incorrect number of items picked up. example: group member picks up an apple, then player picks up an apple, the ui would display that the player picked up two apples, instead of the group member picking up one and the player picking up one --- voxygen/src/hud/loot_scroller.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/voxygen/src/hud/loot_scroller.rs b/voxygen/src/hud/loot_scroller.rs index c9a3a86e95..8799f2f8be 100644 --- a/voxygen/src/hud/loot_scroller.rs +++ b/voxygen/src/hud/loot_scroller.rs @@ -169,7 +169,7 @@ impl<'a> Widget for LootScroller<'a> { if *t >= oldest_merge_pulse { if let Some(i) = self.new_messages.iter().position(|m| { m.item.item_definition_id() == message.item.item_definition_id() - && m.taken_by == message.taken_by + && m.taken_by == message.taken_by }) { self.new_messages[i].amount += message.amount; false