From 4af274756f0ed23091939a17f05d0cb1b7479a71 Mon Sep 17 00:00:00 2001 From: qarmin Date: Mon, 4 May 2020 07:39:40 +0200 Subject: [PATCH] Fixes type of array in _set_outlines function --- scene/2d/navigation_region_2d.cpp | 2 +- scene/2d/navigation_region_2d.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scene/2d/navigation_region_2d.cpp b/scene/2d/navigation_region_2d.cpp index 19484442b12..abbfbf83b75 100644 --- a/scene/2d/navigation_region_2d.cpp +++ b/scene/2d/navigation_region_2d.cpp @@ -118,7 +118,7 @@ Array NavigationPolygon::_get_polygons() const { return ret; } -void NavigationPolygon::_set_outlines(const TypedArray> &p_array) { +void NavigationPolygon::_set_outlines(const TypedArray> &p_array) { outlines.resize(p_array.size()); for (int i = 0; i < p_array.size(); i++) { diff --git a/scene/2d/navigation_region_2d.h b/scene/2d/navigation_region_2d.h index cbfe4299fbb..e730df6373c 100644 --- a/scene/2d/navigation_region_2d.h +++ b/scene/2d/navigation_region_2d.h @@ -58,7 +58,7 @@ protected: void _set_polygons(const TypedArray> &p_array); Array _get_polygons() const; - void _set_outlines(const TypedArray> &p_array); + void _set_outlines(const TypedArray> &p_array); Array _get_outlines() const; public: