summaryrefslogtreecommitdiff
path: root/scene/animation
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-11-20 21:31:12 +0100
committerGitHub <noreply@github.com>2019-11-20 21:31:12 +0100
commit083d088de3fe7cd5d825cebebc46ce32fc87b4b0 (patch)
tree9b2524105bf989f6ac0ad1c488ac493f558a391f /scene/animation
parent719254ae0d4e1b7c9be36a4399809caf270d7e86 (diff)
parent99d8626f4a313471410db421891e90fe768cd929 (diff)
Merge pull request #33583 from qarmin/fix_overflows_unitialized
Fix some overflows and unitialized variables
Diffstat (limited to 'scene/animation')
-rw-r--r--scene/animation/tween.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/animation/tween.cpp b/scene/animation/tween.cpp
index a7d936fcd3..ce3f2b3b1a 100644
--- a/scene/animation/tween.cpp
+++ b/scene/animation/tween.cpp
@@ -63,6 +63,8 @@ void Tween::_add_pending_command(StringName p_key, const Variant &p_arg1, const
count = 2;
else if (p_arg1.get_type() != Variant::NIL)
count = 1;
+ else
+ count = 0;
// Add the specified arguments to the command
// TODO: Make this a switch statement?