Fix editor menu options going back to editor not using returnmenu()

Instead of directly using Game::createmenu(Menu::ed_settings), we should
be using Game::returnmenu() here, so the stack frames don't keep piling
up.
This commit is contained in:
Misa
2020-04-25 19:25:30 -07:00
committed by Ethan Lee
parent 9fca3e111f
commit 98e33fca9e

View File

@@ -3509,7 +3509,7 @@ void editormenuactionpress()
break;
case 4:
music.playef(11);
game.createmenu(Menu::ed_settings);
game.returnmenu();
map.nexttowercolour();
break;
}
@@ -3600,7 +3600,7 @@ void editormenuactionpress()
case 1:
music.playef(11);
music.fadeout();
game.createmenu(Menu::ed_settings);
game.returnmenu();
map.nexttowercolour();
break;
}
@@ -3633,7 +3633,7 @@ void editormenuactionpress()
case 2:
//Go back to editor
music.playef(11);
game.createmenu(Menu::ed_settings);
game.returnmenu();
map.nexttowercolour();
break;
}