Add missing flag for count support with drop command

The recent getobj refactoring missed the flag GETOBJ_ALLOWCNT for the drop
command.
This commit is contained in:
Patric Mueller
2021-01-08 02:12:29 +01:00
parent 82c544b935
commit 6a2ac5b446
+2 -1
View File
@@ -27,7 +27,8 @@ dodrop()
if (*u.ushops) if (*u.ushops)
sellobj_state(SELL_DELIBERATE); 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) if (*u.ushops)
sellobj_state(SELL_NORMAL); sellobj_state(SELL_NORMAL);
if (result) if (result)