GUI: fix feeling lucky not changing system name
This commit is contained in:
parent
d00430c4fb
commit
4508fea6e0
|
@ -128,7 +128,9 @@ void FurnaceGUI::drawNewSong() {
|
||||||
if (newSystemCat->systems.size()==0) {
|
if (newSystemCat->systems.size()==0) {
|
||||||
ImGui::CloseCurrentPopup();
|
ImGui::CloseCurrentPopup();
|
||||||
} else {
|
} else {
|
||||||
nextDesc=newSystemCat->systems[rand()%newSystemCat->systems.size()].definition.data();
|
unsigned int selection=rand()%newSystemCat->systems.size();
|
||||||
|
nextDesc=newSystemCat->systems[selection].definition.data();
|
||||||
|
nextDescName=newSystemCat->systems[selection].name;
|
||||||
accepted=true;
|
accepted=true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue