mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
Fix #7506
This commit is contained in:
parent
c9f03b4174
commit
e2c5f4e766
@ -423,12 +423,16 @@ namespace MWMechanics
|
||||
|
||||
ESM::NPC player = *world->getPlayerPtr().get<ESM::NPC>()->mBase;
|
||||
|
||||
player.mRace = race;
|
||||
player.mHead = head;
|
||||
player.mHair = hair;
|
||||
player.setIsMale(male);
|
||||
if (player.mRace != race || player.mHead != head || player.mHair != hair || player.isMale() != male)
|
||||
{
|
||||
player.mRace = race;
|
||||
player.mHead = head;
|
||||
player.mHair = hair;
|
||||
player.setIsMale(male);
|
||||
|
||||
world->getStore().insert(player);
|
||||
world->getStore().insert(player);
|
||||
world->renderPlayer();
|
||||
}
|
||||
|
||||
mRaceSelected = true;
|
||||
buildPlayer();
|
||||
|
Loading…
x
Reference in New Issue
Block a user