diff options
author | Rafał Mikrut <mikrutrafal54@gmail.com> | 2019-11-20 16:22:16 +0100 |
---|---|---|
committer | Rafał Mikrut <mikrutrafal54@gmail.com> | 2019-11-20 16:22:16 +0100 |
commit | 99d8626f4a313471410db421891e90fe768cd929 (patch) | |
tree | b5e855e2c2a8b142af4fc01cfbc0a0257a01ccc5 /scene/animation | |
parent | 58ca9f17a2650bb381972210d1babbf34ac6819c (diff) |
Fix some overflows and unitialized variables
Diffstat (limited to 'scene/animation')
-rw-r--r-- | scene/animation/tween.cpp | 2 |
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? |