summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-10-26 23:39:17 +0100
committerGitHub <noreply@github.com>2020-10-26 23:39:17 +0100
commitd767c0eeeaab8480829a6e7761c02f23a4e2f996 (patch)
tree897917da0b2f4cb94697b3f983e64573b7068cf3
parent7b27dccbe0832e1231ff842a3a2c6e97a76660f3 (diff)
parentb506f9b5aaa0f5e1ec8addb3fbfd641538d1bff0 (diff)
Merge pull request #43109 from bruvzg/gridmap_ub
Fix uninitialized `GridMapEditor::node` and `InputMapEditor::setting` variables.
-rw-r--r--editor/input_map_editor.h2
-rw-r--r--modules/gridmap/grid_map_editor_plugin.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/editor/input_map_editor.h b/editor/input_map_editor.h
index cc806fc660..87a25e91b0 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<InputEvent> p_exiting_event = Ref<InputEvent>());
diff --git a/modules/gridmap/grid_map_editor_plugin.h b/modules/gridmap/grid_map_editor_plugin.h
index 7e136ff9bb..ee17a52d31 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<SetItem> set_items;
- GridMap *node;
+ GridMap *node = nullptr;
MeshLibrary *last_mesh_library;
ClipMode clip_mode;