fix random garbage ptr issues
This commit is contained in:
@@ -68,7 +68,7 @@ class PD_API ColorEdit : public Container {
|
||||
u32* color_ref = nullptr; ///< Color Reference
|
||||
u32 initial_color; ///< Initial Color
|
||||
std::string label; ///< Label of the Button
|
||||
Layout* layout; ///< Layout to open
|
||||
Layout* layout = nullptr; ///< Layout to open
|
||||
bool is_shown = false; ///< AHow Layout Editor
|
||||
};
|
||||
} // namespace UI7
|
||||
|
||||
@@ -155,11 +155,11 @@ class PD_API Container {
|
||||
/** Container Size*/
|
||||
fvec2 size;
|
||||
/** Reference to the Drawlist to Draw to*/
|
||||
Li::Drawlist* list;
|
||||
Li::Drawlist* list = nullptr;
|
||||
/** IO Reference for Renderer and Theme */
|
||||
UI7::IO* io;
|
||||
UI7::IO* io = nullptr;
|
||||
/** Reference to the parent container*/
|
||||
Container* parent;
|
||||
Container* parent = nullptr;
|
||||
/** Object ID (0 if unused)*/
|
||||
u32 id = 0;
|
||||
/** Internal Flags */
|
||||
|
||||
Reference in New Issue
Block a user