Fix double return when pressing Esc in editor font menu

The line that checked if the current menu is the font menu ended up
below the code that returned a menu, so this was an easy fix.

Closes #1017.
This commit is contained in:
Dav999 authored and Misa Elizabeth Kai committed 2023-09-13 23:58:34 -07:00
1 parent a073597ccf
commit d741b3aa27
1 file changed
+3 -3
+3 -3
View File
@@ -3509,11 +3509,11 @@ void editorinput(void)
}
else
{
game.returnmenu();
map.nexttowercolour();
// Avoid double return
esc_from_font = game.currentmenuname == Menu::ed_font;
game.returnmenu();
map.nexttowercolour();
}
if (ed.state == EditorState_MENU && !esc_from_font)