forked from mirror/openmw-tes3mp
Fixed incorrect comparison with current race, should use the ID not the name.
This commit is contained in:
parent
54996684aa
commit
07b1b21b29
1 changed files with 2 additions and 2 deletions
|
@ -129,7 +129,7 @@ void RaceDialog::setRaceId(const std::string &raceId)
|
|||
size_t count = raceList->getItemCount();
|
||||
for (size_t i = 0; i < count; ++i)
|
||||
{
|
||||
if (boost::iequals(raceList->getItem(i), raceId))
|
||||
if (boost::iequals(*raceList->getItemDataAt<std::string>(i), raceId))
|
||||
{
|
||||
raceList->setIndexSelected(i);
|
||||
break;
|
||||
|
@ -230,7 +230,7 @@ void RaceDialog::updateRaces()
|
|||
continue;
|
||||
|
||||
raceList->addItem(race.name, it->first);
|
||||
if (boost::iequals(race.name, currentRaceId))
|
||||
if (boost::iequals(it->first, currentRaceId))
|
||||
raceList->setIndexSelected(index);
|
||||
++index;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue