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

Method removeItemFromInventoryVehicle

game/ui/general/aequipscreen.cpp:1143–1149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1141}
1142
1143void AEquipScreen::removeItemFromInventoryVehicle(sp<AEquipment> item)
1144{
1145 sp<Vehicle> vehicle = getAgentVehicle(selectedAgents.front());
1146
1147 vehicleItems[vehicle].erase(
1148 std::find(vehicleItems[vehicle].begin(), vehicleItems[vehicle].end(), item));
1149}
1150
1151void AEquipScreen::addItemToInventory(sp<AEquipment> item)
1152{

Callers

nothing calls this directly

Calls 2

endMethod · 0.80
beginMethod · 0.45

Tested by

no test coverage detected