From 6ea1e97e06ea196f5dc74633f8e8c239fb5520bb Mon Sep 17 00:00:00 2001 From: sps1112 Date: Wed, 3 Mar 2021 15:59:30 +0530 Subject: [PATCH] Add null check for NavigationMesh.create_from_mesh() (cherry picked from commit cf6bfea93ff2a1e2b166de07bc8a0625230f3cad) --- scene/3d/navigation_mesh.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/3d/navigation_mesh.cpp b/scene/3d/navigation_mesh.cpp index d803dba89e7..bccb0b9d324 100644 --- a/scene/3d/navigation_mesh.cpp +++ b/scene/3d/navigation_mesh.cpp @@ -33,6 +33,7 @@ #include "navigation.h" void NavigationMesh::create_from_mesh(const Ref &p_mesh) { + ERR_FAIL_COND(p_mesh.is_null()); vertices = PoolVector(); clear_polygons();