mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-29 17:15:32 +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,8 +326,11 @@ namespace MWGui
|
|||
record.mRace = mCurrentRaceId;
|
||||
record.setIsMale(mGenderIndex == 0);
|
||||
|
||||
record.mHead = mAvailableHeads[mFaceIndex];
|
||||
record.mHair = mAvailableHairs[mHairIndex];
|
||||
if (mFaceIndex >= 0 && mFaceIndex < int(mAvailableHeads.size()))
|
||||
record.mHead = mAvailableHeads[mFaceIndex];
|
||||
|
||||
if (mHairIndex >= 0 && mHairIndex < int(mAvailableHairs.size()))
|
||||
record.mHair = mAvailableHairs[mHairIndex];
|
||||
|
||||
try
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue