diff --git a/core/math/a_star.cpp b/core/math/a_star.cpp index 4f80fb2491c..ffe10899650 100644 --- a/core/math/a_star.cpp +++ b/core/math/a_star.cpp @@ -443,4 +443,5 @@ AStar::AStar() { AStar::~AStar() { pass = 1; + clear(); }