Only show playable races.

This commit is contained in:
Jan Borsodi 2010-09-14 15:00:04 +02:00
parent cb98bd1a79
commit b1451c4349

View file

@ -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);