diff options
author | qarmin <mikrutrafal54@gmail.com> | 2019-06-03 21:52:50 +0200 |
---|---|---|
committer | qarmin <mikrutrafal54@gmail.com> | 2019-06-03 21:52:50 +0200 |
commit | 8245db869f05a86e88338236d22765b87cc71db8 (patch) | |
tree | 9cad264ada4820d48d6952f1a5564b32cb1619f2 /modules/recast/navigation_mesh_editor_plugin.cpp | |
parent | 8c923fc61740afd560e6c814f7ef19b0cdc30112 (diff) | |
download | redot-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.cpp | 4 |
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() { |