Skip to content

Commit

Permalink
Merge branch 'main' into fix-scrollbar
Browse files Browse the repository at this point in the history
  • Loading branch information
Nottinghster authored Jan 13, 2025
2 parents f4dd4b1 + aa2022e commit ea6accc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/client/container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,8 @@ void Container::onAddItem(const ItemPtr& item, int slot)
return;
}

if (slot == 0)
m_items.emplace_front(item);
else
m_items.emplace_back(item);
m_items.insert(m_items.begin() + slot, item);

updateItemsPositions();

callLuaField("onSizeChange", m_size);
Expand Down

0 comments on commit ea6accc

Please sign in to comment.