mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 18:49:58 +00:00
Fix crash in race dialog when no head or hair are available
This commit is contained in:
parent
a45643f150
commit
9eab3b1728
1 changed files with 5 additions and 2 deletions
|
@ -326,7 +326,10 @@ namespace MWGui
|
||||||
record.mRace = mCurrentRaceId;
|
record.mRace = mCurrentRaceId;
|
||||||
record.setIsMale(mGenderIndex == 0);
|
record.setIsMale(mGenderIndex == 0);
|
||||||
|
|
||||||
|
if (mFaceIndex >= 0 && mFaceIndex < int(mAvailableHeads.size()))
|
||||||
record.mHead = mAvailableHeads[mFaceIndex];
|
record.mHead = mAvailableHeads[mFaceIndex];
|
||||||
|
|
||||||
|
if (mHairIndex >= 0 && mHairIndex < int(mAvailableHairs.size()))
|
||||||
record.mHair = mAvailableHairs[mHairIndex];
|
record.mHair = mAvailableHairs[mHairIndex];
|
||||||
|
|
||||||
try
|
try
|
||||||
|
|
Loading…
Reference in a new issue