MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / btnClearClick

Method btnClearClick

src/Basescape/CraftEquipmentState.cpp:597–603  ·  view source on GitHub ↗

* Empties the contents of the craft, moving all of the items back to the base. */

Source from the content-addressed store, hash-verified

595 * Empties the contents of the craft, moving all of the items back to the base.
596 */
597void CraftEquipmentState::btnClearClick(Action *)
598{
599 for (_sel = 0; _sel != _items.size(); ++_sel)
600 {
601 moveLeftByValue(INT_MAX);
602 }
603}
604
605/**
606* Displays the inventory screen for the soldiers

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected