From 6640eb8065f8922fce6eed35292bb3b1c5ac4447 Mon Sep 17 00:00:00 2001 From: Yuri Rubinsky Date: Sun, 8 Jan 2023 10:34:33 +0300 Subject: [PATCH] Fix error in `AstarGrid2D::get_id_path` --- core/math/a_star_grid_2d.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/math/a_star_grid_2d.cpp b/core/math/a_star_grid_2d.cpp index cacdde6da5f..30d50073d7f 100644 --- a/core/math/a_star_grid_2d.cpp +++ b/core/math/a_star_grid_2d.cpp @@ -528,7 +528,7 @@ TypedArray AStarGrid2D::get_id_path(const Vector2i &p_from_id, const V if (a == b) { TypedArray ret; - ret.push_back(a); + ret.push_back(a->id); return ret; }