Replace trade_check_item_ok() by check_obj_ok()
Relaxes the sanity check of the argument's ef_type. Could be avoided, but not worth the bother.
This commit is contained in:
parent
29f6d10a34
commit
f75544ee70
3 changed files with 2 additions and 19 deletions
|
@ -93,7 +93,7 @@ set(void)
|
|||
trade_nameof(&trade, &item), ni.cur);
|
||||
if (!(p = getstarg(player->argp[3], prompt, buf)))
|
||||
return RET_FAIL;
|
||||
if (!trade_check_item_ok(&item))
|
||||
if (!check_obj_ok(&item.gen))
|
||||
return RET_FAIL;
|
||||
if ((price = atoi(p)) < 0)
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue