MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / removeItemFromInventoryAgent

Method removeItemFromInventoryAgent

game/ui/general/aequipscreen.cpp:1125–1133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1123}
1124
1125void 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
1135void AEquipScreen::removeItemFromInventoryBuilding(sp<AEquipment> item)
1136{

Callers

nothing calls this directly

Calls 2

endMethod · 0.80
beginMethod · 0.45

Tested by

no test coverage detected