summaryrefslogtreecommitdiffstats
path: root/scene/gui/control.h
diff options
context:
space:
mode:
authorYuri Sizov <yuris@humnom.net>2023-04-03 18:01:10 +0200
committerYuri Sizov <yuris@humnom.net>2023-04-03 18:01:10 +0200
commit91ff34b5b569916479fdcb40430d10cb7f15401c (patch)
tree43808ea366c44fbf666b9e62b6f1158808af20df /scene/gui/control.h
parent5fbbe3be0b3da034557eae0a5066f784d72df4a9 (diff)
downloadredot-engine-91ff34b5b569916479fdcb40430d10cb7f15401c.tar.gz
Add a warning when trying to access theme items too early
Diffstat (limited to 'scene/gui/control.h')
-rw-r--r--scene/gui/control.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/gui/control.h b/scene/gui/control.h
index da973783e9..e36e279715 100644
--- a/scene/gui/control.h
+++ b/scene/gui/control.h
@@ -161,6 +161,8 @@ private:
// This Data struct is to avoid namespace pollution in derived classes.
struct Data {
+ bool initialized = false;
+
// Global relations.
List<Control *>::Element *RI = nullptr;