We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aaaa42f commit 34d5ebcCopy full SHA for 34d5ebc
Menus/BuyMenuGUI.cpp
@@ -356,6 +356,10 @@ void BuyMenuGUI::AddCartItem(const std::string &name, const std::string &rightTe
356
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
357
358
void BuyMenuGUI::DuplicateCartItem(const int itemIndex) {
359
+ if (m_pCartList->GetItemList()->empty()) {
360
+ return;
361
+ }
362
+
363
std::vector<GUIListPanel::Item*> addedItems;
364
365
auto addDuplicateItemAtEnd = [&](const GUIListPanel::Item *itemToCopy) {
0 commit comments