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 01:39:56 +01:00
parent 82c544b935
commit 6a2ac5b446

View File

@@ -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)