From 9ebe1d32c08706b0006ce0e40cfb8e26aa167c44 Mon Sep 17 00:00:00 2001 From: Marc Gilleron Date: Sat, 23 Jan 2021 01:32:42 +0000 Subject: [PATCH] Fix potential issue with non-initialized label --- editor/terrain/voxel_terrain_editor_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/terrain/voxel_terrain_editor_plugin.cpp b/editor/terrain/voxel_terrain_editor_plugin.cpp index f0aadd2f..a3757e8b 100644 --- a/editor/terrain/voxel_terrain_editor_plugin.cpp +++ b/editor/terrain/voxel_terrain_editor_plugin.cpp @@ -72,7 +72,7 @@ private: struct Stat { int value; - Label *label; + Label *label = nullptr; }; FixedArray _stats;