1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-24 04:57:45 +00:00

Properly initialize currentRace on startup

This commit is contained in:
Joshua Goins 2022-04-12 12:43:27 -04:00
parent 2f4f212c86
commit 3c49c87f66
2 changed files with 1 additions and 2 deletions

View file

@ -52,7 +52,7 @@ private:
std::vector<GearInfo> gears; std::vector<GearInfo> gears;
std::vector<GearInfo*> loadedGears; std::vector<GearInfo*> loadedGears;
Race currentRace; Race currentRace = Race::HyurMidlanderMale;
GameData& data; GameData& data;

View file

@ -119,7 +119,6 @@ MainWindow::MainWindow(GameData& data) : data(data) {
for(auto [race, raceName] : raceNames) { for(auto [race, raceName] : raceNames) {
raceCombo->addItem(raceName.data()); raceCombo->addItem(raceName.data());
} }
raceCombo->setCurrentIndex(0);
connect(raceCombo, qOverload<int>(&QComboBox::currentIndexChanged), [this](int index) { connect(raceCombo, qOverload<int>(&QComboBox::currentIndexChanged), [this](int index) {
currentRace = (Race)index; currentRace = (Race)index;