diff --git a/code/ColladaExporter.cpp b/code/ColladaExporter.cpp
index 94a0b1539..aa4ea2fc5 100644
--- a/code/ColladaExporter.cpp
+++ b/code/ColladaExporter.cpp
@@ -1309,8 +1309,9 @@ void ColladaExporter::WriteAnimationLibrary(size_t pIndex)
// Combine the above transformations
aiMatrix4x4 mat = TranslationM * RotationM * ScalingM;
- for( uint j = 0; j < 4; ++j)
+ for( size_t j = 0; j < 4; ++j) {
keyframes.insert(keyframes.end(), mat[j], mat[j] + 4);
+ }
}
WriteFloatArray( node_idstr, FloatType_Mat4x4, (const ai_real*) keyframes.data(), keyframes.size() / 16);
@@ -1337,8 +1338,9 @@ void ColladaExporter::WriteAnimationLibrary(size_t pIndex)
// source array
mOutput << startstr << " ";
- for( size_t a = 0; a < names.size(); ++a )
+ for( size_t a = 0; a < names.size(); ++a ) {
mOutput << names[a] << " ";
+ }
mOutput << "" << endstr;
mOutput << startstr << "" << endstr;