summaryrefslogtreecommitdiff
path: root/modules/gdnavigation/nav_region.h
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gdnavigation/nav_region.h')
-rw-r--r--modules/gdnavigation/nav_region.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/gdnavigation/nav_region.h b/modules/gdnavigation/nav_region.h
index f35ee4bea0..731855bfb5 100644
--- a/modules/gdnavigation/nav_region.h
+++ b/modules/gdnavigation/nav_region.h
@@ -45,17 +45,17 @@ class NavMap;
class NavRegion;
class NavRegion : public NavRid {
- NavMap *map;
+ NavMap *map = nullptr;
Transform transform;
Ref<NavigationMesh> mesh;
- bool polygons_dirty;
+ bool polygons_dirty = true;
/// Cache
std::vector<gd::Polygon> polygons;
public:
- NavRegion();
+ NavRegion() {}
void scratch_polygons() {
polygons_dirty = true;