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:
parent
2f4f212c86
commit
3c49c87f66
2 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue