More Cppcheck fixes

Former-commit-id: 62ab1caa04543da1a169812bb92a450d44f3aec1
This commit is contained in:
Lynix
2015-06-07 00:21:53 +02:00
parent d1258c2a6d
commit f8682d227b
7 changed files with 41 additions and 28 deletions

View File

@@ -638,7 +638,7 @@ NzBoxf NzComputeAABB(NzSparsePtr<const NzVector3f> positionPtr, unsigned int ver
if (vertexCount > 0)
{
aabb.Set(positionPtr->x, positionPtr->y, positionPtr->z, 0.f, 0.f, 0.f);
positionPtr++;
--positionPtr;
for (unsigned int i = 1; i < vertexCount; ++i)
aabb.ExtendTo(*positionPtr++);

View File

@@ -333,6 +333,9 @@ bool NzSkeleton::IsValid() const
NzSkeleton& NzSkeleton::operator=(const NzSkeleton& skeleton)
{
if (this == &skeleton)
return *this;
Destroy();
if (skeleton.m_impl)