| 732 | // -------------------------------------------------------------------------------------------- |
| 733 | |
| 734 | void AIPlayer::clearPath() |
| 735 | { |
| 736 | // Only delete if we own the path. |
| 737 | if(!mPathData.path.isNull() && mPathData.owned) |
| 738 | mPathData.path->deleteObject(); |
| 739 | // Reset path data. |
| 740 | mPathData = PathData(); |
| 741 | } |
| 742 | |
| 743 | void AIPlayer::clearCover() |
| 744 | { |
no test coverage detected