mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 03:40:14 +00:00
Use the race ID specified in the ref base's record instead of the race record
The latter is localized and doesn't match with international versions.
This commit is contained in:
parent
6caa39629d
commit
a86ed46ec4
@ -74,7 +74,7 @@ NpcAnimation::NpcAnimation(const MWWorld::Ptr& ptr, OEngine::Render::OgreRendere
|
|||||||
isFemale = !!(ref->base->flags&ESM::NPC::Female);
|
isFemale = !!(ref->base->flags&ESM::NPC::Female);
|
||||||
isBeast = !!(race->data.flags&ESM::Race::Beast);
|
isBeast = !!(race->data.flags&ESM::Race::Beast);
|
||||||
|
|
||||||
bodyRaceID = "b_n_"+race->name;
|
bodyRaceID = "b_n_"+ref->base->race;
|
||||||
std::transform(bodyRaceID.begin(), bodyRaceID.end(), bodyRaceID.begin(), ::tolower);
|
std::transform(bodyRaceID.begin(), bodyRaceID.end(), bodyRaceID.begin(), ::tolower);
|
||||||
|
|
||||||
/*std::cout << "Race: " << ref->base->race ;
|
/*std::cout << "Race: " << ref->base->race ;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user