fix 'doterrain menu bug'

From a report sent directly to devteam:  the #terrain command had the
same bug as the '`' command (which was one of the very first ones
reported):  impossible("add_menu called before start_menu").  Only X11
notices.
This commit is contained in:
PatR
2015-12-29 15:09:50 -08:00
parent 0c2443ebd0
commit 5834ace823
2 changed files with 3 additions and 2 deletions

View File

@@ -1176,6 +1176,7 @@ doterrain(VOID_ARGS)
* a legend for the levl[][].typ codes dump
*/
men = create_nhwindow(NHW_MENU);
start_menu(men);
any = zeroany;
any.a_int = 1;
add_menu(men, NO_GLYPH, &any, 0, 0, ATR_NONE,