1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-23 06:29:11 +00:00

Fix: Add virtual destructor to link graph Path.

Classes derived from Path were freed through base class pointer, but no virtual destructor was present.
This commit is contained in:
Milek7
2021-04-13 17:12:56 +02:00
committed by Charles Pigott
parent 40f7d085f4
commit 144ed59aef

View File

@@ -367,6 +367,7 @@ public:
static Path *invalid_path;
Path(NodeID n, bool source = false);
virtual ~Path() = default;
/** Get the node this leg passes. */
inline NodeID GetNode() const { return this->node; }