* Make sure to cleanup the target's destination followers. */
| 35 | * Make sure to cleanup the target's destination followers. |
| 36 | */ |
| 37 | MovingTarget::~MovingTarget() |
| 38 | { |
| 39 | if (_dest != 0 && !_dest->getFollowers()->empty()) |
| 40 | { |
| 41 | for (std::vector<Target*>::iterator i = _dest->getFollowers()->begin(); i != _dest->getFollowers()->end(); ++i) |
| 42 | { |
| 43 | if ((*i) == this) |
| 44 | { |
| 45 | _dest->getFollowers()->erase(i); |
| 46 | break; |
| 47 | } |
| 48 | } |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | /** |
| 53 | * Loads the moving target from a YAML file. |
nothing calls this directly
no test coverage detected