Skip to content

Commit

Permalink
fix: Dont send items twice
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyeriah committed Sep 24, 2024
1 parent 0f9dce0 commit d435c9d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/mod_zone_difficulty_scripts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -837,13 +837,6 @@ class mod_zone_difficulty_rewardnpc : public CreatureScript
size_t count_pos = data.wpos();
data << uint8(count);

for (uint32 i = 0; i < itemCount && count < MAX_VENDOR_ITEMS; ++i)
{;
EncodeItemToPacket(
data, sObjectMgr->GetItemTemplate(itemList[i].Entry), count,
itemList[i].Price);
}

for (uint32 i = 0; i < itemCount && count < MAX_VENDOR_ITEMS; ++i)
{
if (ItemTemplate const* _proto = sObjectMgr->GetItemTemplate(itemList[i].Entry))
Expand Down

0 comments on commit d435c9d

Please sign in to comment.