1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-26 14:38:30 +02:00

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