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 9707ae4 commit 6105132Copy full SHA for 6105132
Source/Menus/BuyMenuGUI.cpp
@@ -1383,7 +1383,7 @@ void BuyMenuGUI::Update() {
1383
m_IsDragging = true;
1384
itemsChanged = true;
1385
std::swap((*m_pCartList->GetItemList())[m_DraggedItemIndex], (*m_pCartList->GetItemList())[m_DraggedItemIndex - 1]);
1386
- std::swap((*m_pCartList->GetItemList())[m_DraggedItemIndex]->m_ID, (*m_pCartList->GetItemList())[m_DraggedItemIndex + 1]->m_ID);
+ std::swap((*m_pCartList->GetItemList())[m_DraggedItemIndex]->m_ID, (*m_pCartList->GetItemList())[m_DraggedItemIndex - 1]->m_ID);
1387
m_ListItemIndex = --m_DraggedItemIndex;
1388
m_pCartList->SetSelectedIndex(m_ListItemIndex);
1389
g_GUISound.SelectionChangeSound()->Play(m_pController->GetPlayer());
0 commit comments