From 6a2ac5b446f1297955080b7f204cbd81e72f1768 Mon Sep 17 00:00:00 2001 From: Patric Mueller Date: Fri, 8 Jan 2021 01:39:56 +0100 Subject: [PATCH] Add missing flag for count support with drop command The recent getobj refactoring missed the flag GETOBJ_ALLOWCNT for the drop command. --- src/do.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/do.c b/src/do.c index bc3af874f..c637569fb 100644 --- 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)