diff --git a/code/AssetLib/glTF2/glTF2Exporter.cpp b/code/AssetLib/glTF2/glTF2Exporter.cpp index 710035a6d..94d82cbe8 100644 --- a/code/AssetLib/glTF2/glTF2Exporter.cpp +++ b/code/AssetLib/glTF2/glTF2Exporter.cpp @@ -974,7 +974,7 @@ void ExportSkin(Asset &mAsset, const aiMesh *aimesh, Ref &meshRef, Ref buf = vertexJointAccessor->bufferView->buffer; uint8_t *arrys = new uint8_t[bytesLen]; unsigned int i = 0; - for (unsigned int j = 0; j <= bytesLen; j += bytesPerComp) { + for (unsigned int j = 0; j < bytesLen; j += bytesPerComp) { size_t len_p = offset + j; float f_value = *(float *)&buf->GetPointer()[len_p]; unsigned short c = static_cast(f_value);