From fe46f0d2b2292f1cab1135b753acdeba3aa0aa38 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Fri, 22 Jan 2016 19:49:05 -0300 Subject: [PATCH] -leftover debug code was causing a crash in navigation 2d, removed it and fixes #3374 --- scene/2d/navigation2d.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scene/2d/navigation2d.cpp b/scene/2d/navigation2d.cpp index c7542407cb4..fe1760b84ab 100644 --- a/scene/2d/navigation2d.cpp +++ b/scene/2d/navigation2d.cpp @@ -494,6 +494,8 @@ Vector Navigation2D::get_simple_path(const Vector2& p_start, const Vect open_list.erase(least_cost_poly); } +#if 0 +debug path { Polygon *p=end_poly; int idx=0; @@ -514,6 +516,7 @@ Vector Navigation2D::get_simple_path(const Vector2& p_start, const Vect break; } } +#endif if (found_route) { Vector path;