* Cleans up all the entries still in set. */
| 27 | * Cleans up all the entries still in set. |
| 28 | */ |
| 29 | PathfindingOpenSet::~PathfindingOpenSet() |
| 30 | { |
| 31 | while (!_queue.empty()) |
| 32 | { |
| 33 | OpenSetEntry *entry = _queue.top(); |
| 34 | _queue.pop(); |
| 35 | delete entry; |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | /** |
| 40 | * Keeps removing all discarded entries that have come to the top of the queue. |