Skip to content

Commit

Permalink
move UpdateItemIndex out of loop
Browse files Browse the repository at this point in the history
  • Loading branch information
sogladev committed Aug 6, 2024
1 parent 1c15e13 commit d225461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DKPServer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ local function OnLootFrameOpen(event, packet, player)
session:AddItemById(loot_data.id)
loot:RemoveItem(loot_data.id)
nItems = nItems - 1
loot:UpdateItemIndex()
end
end
loot:UpdateItemIndex()
loot:SetUnlootedCount(nItems) -- update loot item count
end

Expand Down

0 comments on commit d225461

Please sign in to comment.