mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-16 16:06:23 -04:00
Only show playable races.
This commit is contained in:
parent
cb98bd1a79
commit
b1451c4349
@ -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…
x
Reference in New Issue
Block a user