]> granicus.if.org Git - nethack/commitdiff
Add missing flag for count support with drop command
authorPatric Mueller <bhaak@gmx.net>
Fri, 8 Jan 2021 00:39:56 +0000 (01:39 +0100)
committerPatric Mueller <bhaak@gmx.net>
Fri, 8 Jan 2021 01:12:29 +0000 (02:12 +0100)
The recent getobj refactoring missed the flag GETOBJ_ALLOWCNT for the drop
command.

src/do.c

index bc3af874f5cd351823854b9a05ffd4b7dbc3c11f..c637569fb0bdbf6292e0a01aa8dd0d24ef2a2385 100644 (file)
--- a/src/do.c
+++ b/src/do.c
@@ -27,7 +27,8 @@ dodrop()
 
     if (*u.ushops)
         sellobj_state(SELL_DELIBERATE);
-    result = drop(getobj("drop", any_obj_ok, GETOBJ_PROMPT));
+    result = drop(getobj("drop", any_obj_ok,
+                         GETOBJ_PROMPT | GETOBJ_ALLOWCNT));
     if (*u.ushops)
         sellobj_state(SELL_NORMAL);
     if (result)