summaryrefslogtreecommitdiffstats
path: root/modules/recast/navigation_mesh_editor_plugin.cpp
diff options
context:
space:
mode:
authorqarmin <mikrutrafal54@gmail.com>2019-06-03 21:52:50 +0200
committerqarmin <mikrutrafal54@gmail.com>2019-06-03 21:52:50 +0200
commit8245db869f05a86e88338236d22765b87cc71db8 (patch)
tree9cad264ada4820d48d6952f1a5564b32cb1619f2 /modules/recast/navigation_mesh_editor_plugin.cpp
parent8c923fc61740afd560e6c814f7ef19b0cdc30112 (diff)
downloadredot-engine-8245db869f05a86e88338236d22765b87cc71db8.tar.gz
Small fixes to unrechable code, possibly overflows, using NULL pointers
Diffstat (limited to 'modules/recast/navigation_mesh_editor_plugin.cpp')
-rw-r--r--modules/recast/navigation_mesh_editor_plugin.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/recast/navigation_mesh_editor_plugin.cpp b/modules/recast/navigation_mesh_editor_plugin.cpp
index eadc11fcee..9f30806925 100644
--- a/modules/recast/navigation_mesh_editor_plugin.cpp
+++ b/modules/recast/navigation_mesh_editor_plugin.cpp
@@ -67,9 +67,7 @@ void NavigationMeshEditor::_bake_pressed() {
EditorNavigationMeshGenerator::get_singleton()->clear(node->get_navigation_mesh());
EditorNavigationMeshGenerator::get_singleton()->bake(node->get_navigation_mesh(), node);
- if (node) {
- node->update_gizmo();
- }
+ node->update_gizmo();
}
void NavigationMeshEditor::_clear_pressed() {