MOD import: crash fix
This commit is contained in:
parent
d7b967c41e
commit
8012676993
3 changed files with 12 additions and 7 deletions
|
|
@ -3682,7 +3682,7 @@ void FurnaceGUI::doAction(int what) {
|
|||
}
|
||||
break;
|
||||
case GUI_ACTION_SAVE:
|
||||
if (curFileName=="") {
|
||||
if (curFileName=="" || e->song.version>=0xff00) {
|
||||
openFileDialog(GUI_FILE_SAVE);
|
||||
} else {
|
||||
if (save(curFileName,e->song.isDMF?e->song.version:0)>0) {
|
||||
|
|
@ -5438,7 +5438,7 @@ bool FurnaceGUI::loop() {
|
|||
}
|
||||
ImGui::Separator();
|
||||
if (ImGui::MenuItem("save",BIND_FOR(GUI_ACTION_SAVE))) {
|
||||
if (curFileName=="") {
|
||||
if (curFileName=="" || e->song.version>=0xff00) {
|
||||
openFileDialog(GUI_FILE_SAVE);
|
||||
} else {
|
||||
if (save(curFileName,e->song.isDMF?e->song.version:0)>0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue