Skip to content

Commit

Permalink
Fixed container with pagination not updating items correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Oen44 committed Feb 27, 2023
1 parent f6ee1e6 commit 2173eec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ void Container::onAddItem(const ItemPtr& item, int slot)

if(slot == 0)
m_items.push_front(item);
else
else if (slot > 0 && m_items.size() <= m_capacity - 1)
m_items.push_back(item);
updateItemsPositions();

Expand Down

0 comments on commit 2173eec

Please sign in to comment.