mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05: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:
@@ -368,7 +368,7 @@ private:
|
||||
PathRotation path_rotation;
|
||||
bool path_local;
|
||||
|
||||
Path3D *path;
|
||||
Path3D *path = nullptr;
|
||||
|
||||
bool smooth_faces;
|
||||
bool path_continuous_u;
|
||||
|
||||
Reference in New Issue
Block a user