fixed joint info chunk size calculation for

This commit is contained in:
gered 2011-04-28 23:27:29 -04:00
parent f5da1d16b2
commit e51648245e

View file

@ -214,8 +214,8 @@ void WriteJoints(const std::vector<MeshJoint> &joints, FILE *fp)
// add up all the variable length joint names and parent joint names // add up all the variable length joint names and parent joint names
for (uint32_t i = 0; i < count; ++i) for (uint32_t i = 0; i < count; ++i)
{ {
size += joints[i].name.length() + 1; // include null terminator size += joints[i].name.length() + 1; // include null terminator
size += joints[i].name.length() + 1; // ditto size += joints[i].parentName.length() + 1; // ditto
} }
fputs("JNT", fp); fputs("JNT", fp);