diff --git a/src/gui/newSong.cpp b/src/gui/newSong.cpp index eff8d4a0f..7959149b8 100644 --- a/src/gui/newSong.cpp +++ b/src/gui/newSong.cpp @@ -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; } }