Merge pull request #1784 from NateWardawg/sa_fixes

Fixed some items caught in cppcheck
This commit is contained in:
Juan Linietsky 2015-05-03 22:54:02 -03:00
commit f850f0d9ec
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

@ -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