1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-27 03:35:27 +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; 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();