summaryrefslogtreecommitdiff
path: root/core/math
diff options
context:
space:
mode:
authorYuri Rubinsky <chaosus89@gmail.com>2023-01-08 10:34:33 +0300
committerYuri Rubinsky <chaosus89@gmail.com>2023-01-08 10:34:33 +0300
commit6640eb8065f8922fce6eed35292bb3b1c5ac4447 (patch)
treee9443fd62afecc4594afd5cd4ac2db23d0b21fed /core/math
parentfcba87e696d58912838d8a4a6987b10efa28e78f (diff)
Fix error in `AstarGrid2D::get_id_path`
Diffstat (limited to 'core/math')
-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;
}