From b506f9b5aaa0f5e1ec8addb3fbfd641538d1bff0 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Mon, 26 Oct 2020 22:54:29 +0200 Subject: [PATCH] Fix uninitialized `GridMapEditor::node` and `InputMapEditor::setting` variables. --- editor/input_map_editor.h | 2 +- modules/gridmap/grid_map_editor_plugin.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/input_map_editor.h b/editor/input_map_editor.h index cc806fc660c..87a25e91b08 100644 --- a/editor/input_map_editor.h +++ b/editor/input_map_editor.h @@ -69,7 +69,7 @@ class InputMapEditor : public Control { AcceptDialog *message; UndoRedo *undo_redo; String inputmap_changed; - bool setting; + bool setting = false; void _update_actions(); void _add_item(int p_item, Ref p_exiting_event = Ref()); diff --git a/modules/gridmap/grid_map_editor_plugin.h b/modules/gridmap/grid_map_editor_plugin.h index 7e136ff9bb0..ee17a52d31b 100644 --- a/modules/gridmap/grid_map_editor_plugin.h +++ b/modules/gridmap/grid_map_editor_plugin.h @@ -93,7 +93,7 @@ class GridMapEditor : public VBoxContainer { List set_items; - GridMap *node; + GridMap *node = nullptr; MeshLibrary *last_mesh_library; ClipMode clip_mode;