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

Method removeItemFromInventoryBuilding

game/ui/general/aequipscreen.cpp:1135–1141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1133}
1134
1135void AEquipScreen::removeItemFromInventoryBuilding(sp<AEquipment> item)
1136{
1137 sp<Building> building = getAgentBuilding(selectedAgents.front());
1138
1139 buildingItems[building].erase(
1140 std::find(buildingItems[building].begin(), buildingItems[building].end(), item));
1141}
1142
1143void AEquipScreen::removeItemFromInventoryVehicle(sp<AEquipment> item)
1144{

Callers

nothing calls this directly

Calls 2

endMethod · 0.80
beginMethod · 0.45

Tested by

no test coverage detected