summaryrefslogtreecommitdiff
path: root/core/templates/list.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/templates/list.h')
-rw-r--r--core/templates/list.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/templates/list.h b/core/templates/list.h
index d745066e4c..8e14aaa90d 100644
--- a/core/templates/list.h
+++ b/core/templates/list.h
@@ -137,9 +137,9 @@ public:
private:
struct _Data {
- Element *first;
- Element *last;
- int size_cache;
+ Element *first = nullptr;
+ Element *last = nullptr;
+ int size_cache = 0;
bool erase(const Element *p_I) {
ERR_FAIL_COND_V(!p_I, false);