From 3bacf7970013c67961da00c16829ee52ee83def6 Mon Sep 17 00:00:00 2001 From: "nethack.allison" Date: Wed, 4 Sep 2002 01:44:25 +0000 Subject: [PATCH] menu loot follow-up bit --- src/pickup.c | 4 ++++ 1 file changed, 4 insertions(+) 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?");