diff options
Diffstat (limited to 'frontends/amiga')
-rw-r--r-- | frontends/amiga/menu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/amiga/menu.c b/frontends/amiga/menu.c index 88a875ec1..c354fef3c 100644 --- a/frontends/amiga/menu.c +++ b/frontends/amiga/menu.c @@ -923,7 +923,7 @@ struct Menu *ami_menu_layout(struct ami_menu_data **md, int max) TextLength(rp, md[i]->menulab, strlen(md[i]->menulab)) - icon_width - space_width; - if((md[i]->menutype == NM_ITEM) && (md[i+1]->menutype == NM_SUB)) { + if((md[i]->menutype == NM_ITEM) && md[i+1] && (md[i+1]->menutype == NM_SUB)) { left_posn -= menu_glyph_width[NSA_GLYPH_SUBMENU]; submenuarrow = NewObject(NULL, "sysiclass", |