diff --git a/src/MultilevelAStarEx.cpp b/src/MultilevelAStarEx.cpp index 7eb34fa..60e8bac 100644 --- a/src/MultilevelAStarEx.cpp +++ b/src/MultilevelAStarEx.cpp @@ -9,6 +9,7 @@ #define NODES(x, y) (_nodes[(x) + (y) * _width]) using namespace godot; +using std::vector; static const int STRAIGHT_DISTANCE = 10; static const int DIAGONAL_DISTANCE = 14; @@ -154,7 +155,7 @@ void MultilevelAStarEx::init(const Rect2i ®ion) _nodes.resize(_width * _height); - std::vector::iterator iter = _nodes.begin(); + vector::iterator iter = _nodes.begin(); for (int y = 0; y < _height; y++) { for (int x = 0; x < _width; x++)