summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-01-08 22:40:41 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-01-08 22:40:41 +0100
commiteff2739cf7b80e0b6c4c48ae10250044c63e10ae (patch)
tree3e116c2fd13f1a8a8e90272049471bf5fa6e7eac
parent1e32a286f3a912a6bd78625c77aa7b0d1a935d2f (diff)
parent6640eb8065f8922fce6eed35292bb3b1c5ac4447 (diff)
Merge pull request #71052 from Chaosus/fix_astargrid2d
Fix error in `AstarGrid2D::get_id_path`
-rw-r--r--core/math/a_star_grid_2d.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/a_star_grid_2d.cpp b/core/math/a_star_grid_2d.cpp
index cacdde6da5..30d50073d7 100644
--- a/core/math/a_star_grid_2d.cpp
+++ b/core/math/a_star_grid_2d.cpp
@@ -528,7 +528,7 @@ TypedArray<Vector2i> AStarGrid2D::get_id_path(const Vector2i &p_from_id, const V
if (a == b) {
TypedArray<Vector2i> ret;
- ret.push_back(a);
+ ret.push_back(a->id);
return ret;
}