1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 09:35:28 +00:00
This commit is contained in:
Petr Mikheev 2023-08-12 12:25:58 +02:00
parent c9f03b4174
commit e2c5f4e766

View File

@ -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();