summaryrefslogtreecommitdiff
path: root/scene/animation
diff options
context:
space:
mode:
authorRafał Mikrut <mikrutrafal54@gmail.com>2020-04-01 19:29:35 +0200
committerRafał Mikrut <mikrutrafal54@gmail.com>2020-04-01 19:29:35 +0200
commit359bebd8c08a626e64ade1ac45c3c925352bd8a4 (patch)
tree83769dbf9cdb5ca7e6dee2e04b95dfc2c1f587c4 /scene/animation
parent0168709978154a89f137b44f33647e5d28a46250 (diff)
Fix out of bound array access caused by unassigned variable
Diffstat (limited to 'scene/animation')
-rw-r--r--scene/animation/animation_node_state_machine.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/scene/animation/animation_node_state_machine.cpp b/scene/animation/animation_node_state_machine.cpp
index ce1e75a61d..05c5e86491 100644
--- a/scene/animation/animation_node_state_machine.cpp
+++ b/scene/animation/animation_node_state_machine.cpp
@@ -516,6 +516,11 @@ AnimationNodeStateMachinePlayback::AnimationNodeStateMachinePlayback() {
len_current = 0;
fading_time = 0;
stop_request = false;
+ len_total = 0.0;
+ pos_current = 0.0;
+ loops_current = 0;
+ fading_pos = 0.0;
+ start_request_travel = false;
}
///////////////////////////////////////////////////////