@@ -1281,9 +1281,16 @@ void BuyMenuGUI::Update() {
1281
1281
}
1282
1282
1283
1283
// User selected to add an item to cart list!
1284
- if (m_pController->IsState (PRESS_FACEBUTTON) && !m_IsDragging) {
1284
+ if (m_pController->IsState (RELEASE_FACEBUTTON) && !m_IsDragging) {
1285
+ // User pressed on a loadout set, so load it into the menu
1286
+ if (pItem && m_MenuCategory == LOADOUTS) {
1287
+ // Beep if there's an error
1288
+ if (!DeployLoadout (m_ListItemIndex)) {
1289
+ g_GUISound.UserErrorSound ()->Play (m_pController->GetPlayer ());
1290
+ }
1291
+ }
1285
1292
// User pressed on a module group item; toggle its expansion!
1286
- if (pItem && pItem->m_ExtraIndex >= 0 ) {
1293
+ else if (pItem && pItem->m_ExtraIndex >= 0 ) {
1287
1294
// Make appropriate sound
1288
1295
if (!m_aExpandedModules[pItem->m_ExtraIndex ]) {
1289
1296
g_GUISound.ItemChangeSound ()->Play (m_pController->GetPlayer ());
@@ -1296,12 +1303,6 @@ void BuyMenuGUI::Update() {
1296
1303
// Re-populate the item list with the new module expansion configuation
1297
1304
CategoryChange (false );
1298
1305
}
1299
- // User pressed on a loadout set, so load it into the menu
1300
- else if (pItem && m_MenuCategory == LOADOUTS) {
1301
- // Beep if there's an error
1302
- if (!DeployLoadout (m_ListItemIndex))
1303
- g_GUISound.UserErrorSound ()->Play (m_pController->GetPlayer ());
1304
- }
1305
1306
// User mashed button on a regular shop item, add it to cargo, or select craft
1306
1307
else if (pItem && pItem->m_pEntity ) {
1307
1308
// Select the craft
0 commit comments