From 99d8626f4a313471410db421891e90fe768cd929 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Mikrut?= Date: Wed, 20 Nov 2019 16:22:16 +0100 Subject: Fix some overflows and unitialized variables --- scene/animation/tween.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scene/animation/tween.cpp') 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? -- cgit v1.2.3