diff --git a/src/Core/Resource/Factory/CAnimationLoader.cpp b/src/Core/Resource/Factory/CAnimationLoader.cpp index 6f9396df..c22618ef 100644 --- a/src/Core/Resource/Factory/CAnimationLoader.cpp +++ b/src/Core/Resource/Factory/CAnimationLoader.cpp @@ -1,4 +1,5 @@ #include "CAnimationLoader.h" +#include #include #include @@ -63,6 +64,7 @@ void CAnimationLoader::ReadUncompressedANIM() // Bone channel list u32 NumBoneIndices = mpInput->ReadLong(); + ASSERT(NumBoneIndices == 100); std::vector BoneIndices(NumBoneIndices); for (u32 iChan = 0; iChan < NumBoneIndices; iChan++) @@ -132,7 +134,7 @@ void CAnimationLoader::ReadUncompressedANIM() ScaleIndices[iScale] = mpInput->ReadByte(); if (ScaleIndices[iScale] != 0xFF) - NumScaleIndices++; + NumScaleChannels++; } }