Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

Commit

Permalink
fix crash when the inventory action menu is cancelled with esc
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielT committed Feb 13, 2012
1 parent 3b9a876 commit 5ec05b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nitrohack/src/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ static nh_bool do_item_actions(char invlet)
i = curses_display_menu(items, ccount, "Item actions:", PICK_ONE, selected);
free(items);

if (!i)
if (i <= 0)
return FALSE;

arg.argtype = CMD_ARG_OBJ;
Expand Down

0 comments on commit 5ec05b6

Please sign in to comment.