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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user