|
|
@ -113,7 +113,9 @@ namespace CSMWorld
|
|
|
|
const std::string ActorAdapter::ActorData::getPart(ESM::PartReferenceType index) const
|
|
|
|
const std::string ActorAdapter::ActorData::getPart(ESM::PartReferenceType index) const
|
|
|
|
{
|
|
|
|
{
|
|
|
|
auto it = mParts.find(index);
|
|
|
|
auto it = mParts.find(index);
|
|
|
|
if (it == mParts.end() && mRaceData && mRaceData->handlesPart(index))
|
|
|
|
if (it == mParts.end())
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (mRaceData && mRaceData->handlesPart(index))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (mFemale)
|
|
|
|
if (mFemale)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -126,6 +128,9 @@ namespace CSMWorld
|
|
|
|
return mRaceData->getMalePart(index);
|
|
|
|
return mRaceData->getMalePart(index);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return "";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const std::string& partName = it->second.first;
|
|
|
|
const std::string& partName = it->second.first;
|
|
|
|
return partName;
|
|
|
|
return partName;
|
|
|
|
}
|
|
|
|
}
|
|
|
|