2
0
Эх сурвалжийг харах

Fix error in `AstarGrid2D::get_id_path`

Yuri Rubinsky 2 жил өмнө
parent
commit
6640eb8065

+ 1 - 1
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) {
 	if (a == b) {
 		TypedArray<Vector2i> ret;
 		TypedArray<Vector2i> ret;
-		ret.push_back(a);
+		ret.push_back(a->id);
 		return ret;
 		return ret;
 	}
 	}