MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / ~Target

Method ~Target

src/Savegame/Target.cpp:38–48  ·  view source on GitHub ↗

* Make sure no crafts are chasing this target. */

Source from the content-addressed store, hash-verified

36 * Make sure no crafts are chasing this target.
37 */
38Target::~Target()
39{
40 for (size_t i = 0; i < _followers.size(); ++i)
41 {
42 Craft *craft = dynamic_cast<Craft*>(_followers[i]);
43 if (craft)
44 {
45 craft->returnToBase();
46 }
47 }
48}
49
50/**
51 * Loads the target from a YAML file.

Callers

nothing calls this directly

Calls 1

returnToBaseMethod · 0.80

Tested by

no test coverage detected