GUI: fix feeling lucky not changing system name

This commit is contained in:
tildearrow 2022-10-30 21:57:52 -05:00
parent d00430c4fb
commit 4508fea6e0
1 changed files with 3 additions and 1 deletions

View File

@ -128,7 +128,9 @@ void FurnaceGUI::drawNewSong() {
if (newSystemCat->systems.size()==0) {
ImGui::CloseCurrentPopup();
} 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;
}
}