Only show playable races.

actorid
Jan Borsodi 15 years ago
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…
Cancel
Save