mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-24 00:39:49 +00: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)
|
||||
{
|
||||
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);
|
||||
if (boost::iequals(race.name, currentRace))
|
||||
raceList->setIndexSelected(index);
|
||||
|
Loading…
x
Reference in New Issue
Block a user