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

Method btnCancelClick

src/Geoscape/ConfirmDestinationState.cpp:147–155  ·  view source on GitHub ↗

* Returns to the previous screen. * @param action Pointer to an action. */

Source from the content-addressed store, hash-verified

145 * @param action Pointer to an action.
146 */
147void ConfirmDestinationState::btnCancelClick(Action *)
148{
149 Waypoint *w = dynamic_cast<Waypoint*>(_target);
150 if (w != 0 && w->getId() == 0)
151 {
152 delete w;
153 }
154 _game->popState();
155}
156
157}

Callers

nothing calls this directly

Calls 2

getIdMethod · 0.45
popStateMethod · 0.45

Tested by

no test coverage detected