Skip to content

Commit 144474f

Browse files
committed
Prevent auto-recovery save from clearing the selection
Fixes #107
1 parent 9545a5e commit 144474f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/save_song/save_song.gml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if ((!backup) && (fn = "" || filename_ext(filename) != ".nbs")) {
1212
fn = string(get_save_filename_ext("Note Block Songs (*.nbs)|*.nbs", fsave, songfolder, "Save song"))
1313
if (fn = "") return 0
1414
}
15-
if (selected > 0) selection_place(0)
15+
if ((!backup) && (selected > 0)) selection_place(0)
1616

1717
if (backup) {
1818
nbsver = nbs_version

0 commit comments

Comments
 (0)