diff options
Diffstat (limited to 'core/variant.h')
-rw-r--r-- | core/variant.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/variant.h b/core/variant.h index 70de8479e3..b24cf968de 100644 --- a/core/variant.h +++ b/core/variant.h @@ -471,8 +471,9 @@ public: Variant(const Variant &p_variant); _FORCE_INLINE_ Variant() {} _FORCE_INLINE_ ~Variant() { - if (type != Variant::NIL) + if (type != Variant::NIL) { clear(); + } } }; |