summaryrefslogtreecommitdiff
path: root/scene/gui/rich_text_effect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/gui/rich_text_effect.cpp')
-rw-r--r--scene/gui/rich_text_effect.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/scene/gui/rich_text_effect.cpp b/scene/gui/rich_text_effect.cpp
index 67fa85b832..f9e0be5b31 100644
--- a/scene/gui/rich_text_effect.cpp
+++ b/scene/gui/rich_text_effect.cpp
@@ -119,4 +119,9 @@ CharFXTransform::CharFXTransform() {
offset = Point2();
color = Color();
character = 0;
+ elapsed_time = 0.0f;
+}
+
+CharFXTransform::~CharFXTransform() {
+ environment.clear();
}