mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03: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:
@@ -62,9 +62,9 @@ private:
|
||||
OrderedHashMap<StringName, Monitor> monitors;
|
||||
|
||||
Map<StringName, TreeItem *> base_map;
|
||||
Tree *monitor_tree;
|
||||
Control *monitor_draw;
|
||||
Label *info_message;
|
||||
Tree *monitor_tree = nullptr;
|
||||
Control *monitor_draw = nullptr;
|
||||
Label *info_message = nullptr;
|
||||
StringName marker_key;
|
||||
int marker_frame;
|
||||
const int MARGIN = 4;
|
||||
|
||||
Reference in New Issue
Block a user