Fix reload sound system button not replacing sound system but output stream of current sound system

This commit is contained in:
csd4ni3l
2026-02-05 18:31:06 +01:00
parent 83f53f8711
commit 320337567d

View File

@@ -344,7 +344,7 @@ fn ui_system(mut contexts: EguiContexts, mut app_state: ResMut<AppState>) -> Res
.clicked() .clicked()
{ {
app_state.currently_playing.clear(); app_state.currently_playing.clear();
app_state.sound_system.output_stream = reload_sound(); app_state.sound_system = reload_sound();
println!("Sucessfully reloaded sound system!"); println!("Sucessfully reloaded sound system!");
} }
}); });