From 359bebd8c08a626e64ade1ac45c3c925352bd8a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Mikrut?= Date: Wed, 1 Apr 2020 19:29:35 +0200 Subject: Fix out of bound array access caused by unassigned variable --- scene/animation/animation_node_state_machine.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scene/animation') 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; } /////////////////////////////////////////////////////// -- cgit v1.2.3