From: nethack.allison Date: Wed, 4 Sep 2002 01:44:25 +0000 (+0000) Subject: menu loot follow-up bit X-Git-Tag: MOVE2GIT~2439 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3bacf7970013c67961da00c16829ee52ee83def6;p=nethack menu loot follow-up bit --- diff --git a/src/pickup.c b/src/pickup.c index c52538f02..9c95dd062 100644 --- a/src/pickup.c +++ b/src/pickup.c @@ -2014,6 +2014,10 @@ register int held; char menuprompt[QBUFSZ]; boolean outokay = (cnt != 0); boolean inokay = (invent != 0); + if (!outokay && !inokay) { + pline("%s You don't have anything to put in.", emptymsg); + return used; + } menuprompt[0] = '\0'; if (!cnt) Sprintf(menuprompt, "%s ", emptymsg); Strcat(menuprompt, "Do what?");