<div dir="ltr"><div>I think there are probably more cases in which menus with no selectable items crash or cause issues. For a start, I notice the mouse hover highlighting is broken in such a menu.<br></div>Code which manipulates MenuStates directly tends to be quite dense, and spread out all over the place with little consistency as to how init_menu_state, etc, are used, and now there's a new edge case that all that code needs to account for. It didn't occur to me that this was going to be a problem.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 31 March 2018 at 03:38,  <span dir="ltr"><<a href="mailto:subversion@hamsterrepublic.com" target="_blank">subversion@hamsterrepublic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">teeemcee<br>
2018-03-30 07:38:00 -0700 (Fri, 30 Mar 2018)<br>
92<br>
Fix a couple possible crashes if a menu has no selectable items. Added MenuState.pt_valid().<br>
---<br>
U   wip/game.bas<br>
U   wip/menus.bas<br>
U   wip/<a href="http://udts.bi" rel="noreferrer" target="_blank">udts.bi</a><br>
______________________________<wbr>_________________<br>
Ohrrpgce mailing list<br>
<a href="mailto:ohrrpgce@lists.motherhamster.org">ohrrpgce@lists.motherhamster.<wbr>org</a><br>
<a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" rel="noreferrer" target="_blank">http://lists.motherhamster.<wbr>org/listinfo.cgi/ohrrpgce-<wbr>motherhamster.org</a><br>
</blockquote></div><br></div>