]> granicus.if.org Git - nethack/commitdiff
menu loot follow-up bit
authornethack.allison <nethack.allison>
Wed, 4 Sep 2002 01:44:25 +0000 (01:44 +0000)
committernethack.allison <nethack.allison>
Wed, 4 Sep 2002 01:44:25 +0000 (01:44 +0000)
src/pickup.c

index c52538f02a69e65ff5af3f65fb0da26a6259047d..9c95dd0628c98cff49d1a9e621c4983fa3d2e7cb 100644 (file)
@@ -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?");