You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-16 14:00:40 +00:00
Zero initialize all pointer class and struct members
This prevents the pitfall of UB when checking if they have been assigned something valid by comparing to nullptr.
This commit is contained in:
@@ -41,12 +41,12 @@ struct EditorProgress;
|
||||
class VoxelGIEditorPlugin : public EditorPlugin {
|
||||
GDCLASS(VoxelGIEditorPlugin, EditorPlugin);
|
||||
|
||||
VoxelGI *voxel_gi;
|
||||
VoxelGI *voxel_gi = nullptr;
|
||||
|
||||
HBoxContainer *bake_hb;
|
||||
Button *bake;
|
||||
HBoxContainer *bake_hb = nullptr;
|
||||
Button *bake = nullptr;
|
||||
|
||||
EditorFileDialog *probe_file;
|
||||
EditorFileDialog *probe_file = nullptr;
|
||||
|
||||
static EditorProgress *tmp_progress;
|
||||
static void bake_func_begin(int p_steps);
|
||||
|
||||
Reference in New Issue
Block a user