Skip to content

Commit b5a1b76

Browse files
authored
AHuman.cpp - remove item in rotated inventory PROPERLY
gkljoiwjegoiwjoiuhbjfslkhgjwrpeso
1 parent 22e9e84 commit b5a1b76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Entities/AHuman.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1060,10 +1060,10 @@ bool AHuman::EquipShieldInBGArm(bool depositToFront) {
10601060

10611061
// We want to preserve inventory order, so rotate it to the device in question.
10621062
std::rotate(m_Inventory.begin(), itr, m_Inventory.end());
1063-
m_Inventory.pop_front();
10641063

10651064
// Erase the inventory entry containing the device we now have switched to
10661065
*m_Inventory.begin() = 0;
1066+
m_Inventory.pop_front();
10671067

10681068
// Now put the device we were looking for and found into the hand
10691069
m_pBGArm->SetHeldDevice(pShield);

0 commit comments

Comments
 (0)