Fixed some items caught in cppcheck

This commit is contained in:
Nathan Warden 2015-05-02 12:17:59 -05:00
parent 524d9fad59
commit 6212946927
2 changed files with 3 additions and 3 deletions

View file

@ -292,7 +292,7 @@ SpriteBase3D::SpriteBase3D() {
parent_sprite=NULL;
pI=NULL;
for(int i=0;i<4;i++)
for(int i=0;i<FLAG_MAX;i++)
flags[i]=i==FLAG_TRANSPARENT;
axis=Vector3::AXIS_Z;

View file

@ -1217,7 +1217,7 @@ 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