diff --git a/AssimpToMesh/src/convert/meshutils.cpp b/AssimpToMesh/src/convert/meshutils.cpp index f40717c..151e0f6 100644 --- a/AssimpToMesh/src/convert/meshutils.cpp +++ b/AssimpToMesh/src/convert/meshutils.cpp @@ -214,8 +214,8 @@ void WriteJoints(const std::vector &joints, FILE *fp) // add up all the variable length joint names and parent joint names for (uint32_t i = 0; i < count; ++i) { - size += joints[i].name.length() + 1; // include null terminator - size += joints[i].name.length() + 1; // ditto + size += joints[i].name.length() + 1; // include null terminator + size += joints[i].parentName.length() + 1; // ditto } fputs("JNT", fp);