mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-27 03:35:27 +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;
|
ESM::NPC player = *world->getPlayerPtr().get<ESM::NPC>()->mBase;
|
||||||
|
|
||||||
player.mRace = race;
|
if (player.mRace != race || player.mHead != head || player.mHair != hair || player.isMale() != male)
|
||||||
player.mHead = head;
|
{
|
||||||
player.mHair = hair;
|
player.mRace = race;
|
||||||
player.setIsMale(male);
|
player.mHead = head;
|
||||||
|
player.mHair = hair;
|
||||||
|
player.setIsMale(male);
|
||||||
|
|
||||||
world->getStore().insert(player);
|
world->getStore().insert(player);
|
||||||
|
world->renderPlayer();
|
||||||
|
}
|
||||||
|
|
||||||
mRaceSelected = true;
|
mRaceSelected = true;
|
||||||
buildPlayer();
|
buildPlayer();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user