diff options
| -rw-r--r-- | OTRExporter/SkeletonLimbExporter.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/OTRExporter/SkeletonLimbExporter.cpp b/OTRExporter/SkeletonLimbExporter.cpp index 9534d8f..0e8b19c 100644 --- a/OTRExporter/SkeletonLimbExporter.cpp +++ b/OTRExporter/SkeletonLimbExporter.cpp @@ -134,7 +134,9 @@ void OTRExporter_SkeletonLimb::Save(ZResource* res, const fs::path& outPath, Bin if (name.at(0) == '&') name.erase(0, 1); - writer->Write(OTRExporter_DisplayList::GetPathToRes(limb, name)); + ZFile* assocFile = Globals::Instance->GetSegment(GETSEGNUM(limb->dListPtr), res->parent->workerID); + + writer->Write(OTRExporter_DisplayList::GetPathToRes(assocFile->resources[0], name)); } else { @@ -155,7 +157,9 @@ void OTRExporter_SkeletonLimb::Save(ZResource* res, const fs::path& outPath, Bin if (name.at(0) == '&') name.erase(0, 1); - writer->Write(OTRExporter_DisplayList::GetPathToRes(limb, name)); + ZFile* assocFile = Globals::Instance->GetSegment(GETSEGNUM(limb->dList2Ptr), res->parent->workerID); + + writer->Write(OTRExporter_DisplayList::GetPathToRes(assocFile->resources[0], name)); } else { @@ -173,4 +177,4 @@ void OTRExporter_SkeletonLimb::Save(ZResource* res, const fs::path& outPath, Bin writer->Write(limb->childIndex); writer->Write(limb->siblingIndex); -}
\ No newline at end of file +} |
