You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +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:
@@ -38,9 +38,9 @@ class SkeletonIK3D;
|
||||
class SkeletonIK3DEditorPlugin : public EditorPlugin {
|
||||
GDCLASS(SkeletonIK3DEditorPlugin, EditorPlugin);
|
||||
|
||||
SkeletonIK3D *skeleton_ik;
|
||||
SkeletonIK3D *skeleton_ik = nullptr;
|
||||
|
||||
Button *play_btn;
|
||||
Button *play_btn = nullptr;
|
||||
|
||||
void _play();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user