1
0
mirror of synced 2025-02-08 14:58:16 +01:00

Fix bug in MusicSelect Screen that would prevent you from playing the same music twice

This commit is contained in:
Stepland 2020-05-23 00:22:07 +02:00
parent da59527d75
commit f43a4d9d9d

View File

@ -28,6 +28,9 @@ MusicSelect::Screen::Screen(const Data::SongList& t_song_list, ScreenResources&
std::optional<Data::SongDifficulty> MusicSelect::Screen::select_chart(sf::RenderWindow& window) {
chart_selected = false;
if (resources.selected_panel) {
resources.selected_panel->obj.unselect();
}
resources.selected_panel.reset();
window.setKeyRepeatEnabled(true);
sf::Clock imguiClock;