forked from mirror/openmw-tes3mp
Only show playable races.
This commit is contained in:
parent
cb98bd1a79
commit
b1451c4349
1 changed files with 4 additions and 0 deletions
|
@ -157,6 +157,10 @@ void RaceDialog::updateRaces()
|
||||||
for (; it != end; ++it)
|
for (; it != end; ++it)
|
||||||
{
|
{
|
||||||
const ESM::Race &race = it->second;
|
const ESM::Race &race = it->second;
|
||||||
|
bool playable = race.data.flags & ESM::Race::Playable;
|
||||||
|
if (!playable) // Only display playable races
|
||||||
|
continue;
|
||||||
|
|
||||||
raceList->addItem(race.name);
|
raceList->addItem(race.name);
|
||||||
if (boost::iequals(race.name, currentRace))
|
if (boost::iequals(race.name, currentRace))
|
||||||
raceList->setIndexSelected(index);
|
raceList->setIndexSelected(index);
|
||||||
|
|
Loading…
Reference in a new issue