aboutsummaryrefslogtreecommitdiff
path: root/scene/resources/animation.cpp
diff options
context:
space:
mode:
authorNathan Warden2015-05-02 12:17:59 -0500
committerNathan Warden2015-05-02 12:17:59 -0500
commit62129469278b284b91845a678b517c04cefbebfe (patch)
treeb372630b37c375f6236a4c52f8878996c129d481 /scene/resources/animation.cpp
parent524d9fad59cd596bb291648c8c2e1b4a46fb2d02 (diff)
downloadgodot-62129469278b284b91845a678b517c04cefbebfe.tar.gz
godot-62129469278b284b91845a678b517c04cefbebfe.tar.zst
godot-62129469278b284b91845a678b517c04cefbebfe.zip
Fixed some items caught in cppcheck
Diffstat (limited to 'scene/resources/animation.cpp')
-rw-r--r--scene/resources/animation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/resources/animation.cpp b/scene/resources/animation.cpp
index 0f11a6670..095406dad 100644
--- a/scene/resources/animation.cpp
+++ b/scene/resources/animation.cpp
@@ -1216,8 +1216,8 @@ T Animation::_interpolate( const Vector< TKey<T> >& p_keys, float p_time, Inter
if (p_ok)
*p_ok=true;
-
- int next;
+
+ int next=0;
float c=0;
// prepare for all cases of interpolation