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

Method removeItemFromInventoryBattle

game/ui/general/aequipscreen.cpp:1077–1086  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1075}
1076
1077void AEquipScreen::removeItemFromInventoryBattle(sp<AEquipment> item)
1078{
1079 auto battleItem = item->ownerItem.lock();
1080 if (!battleItem)
1081 {
1082 LogError("No battle item object in battle inventory?");
1083 return;
1084 }
1085 battleItem->die(*state, false);
1086}
1087
1088void AEquipScreen::removeItemFromInventoryBase(sp<AEquipment> item)
1089{

Callers

nothing calls this directly

Calls 1

dieMethod · 0.45

Tested by

no test coverage detected