| 1123 | } |
| 1124 | |
| 1125 | void AEquipScreen::removeItemFromInventoryAgent(sp<AEquipment> item) |
| 1126 | { |
| 1127 | // Expecting to have an agent |
| 1128 | auto currentAgent = selectedAgents.front(); |
| 1129 | |
| 1130 | agentItems[currentAgent->position].erase(std::find(agentItems[currentAgent->position].begin(), |
| 1131 | agentItems[currentAgent->position].end(), |
| 1132 | item)); |
| 1133 | } |
| 1134 | |
| 1135 | void AEquipScreen::removeItemFromInventoryBuilding(sp<AEquipment> item) |
| 1136 | { |