chore: adjust XModelCommon numeric types

This commit is contained in:
Jan
2024-06-06 19:44:21 +02:00
parent 66c2adacaa
commit d45f0ffab7
8 changed files with 82 additions and 81 deletions

View File

@ -46,10 +46,10 @@ protected:
for (const auto& bone : xmodel.m_bones)
{
m_stream << "BONE " << boneNum << " ";
if (bone.parentIndex < 0)
m_stream << "-1";
if (bone.parentIndex)
m_stream << *bone.parentIndex;
else
m_stream << bone.parentIndex;
m_stream << "-1";
m_stream << " \"" << bone.name << "\"\n";
boneNum++;