From: Ari Johnson Date: Wed, 21 Feb 2007 14:28:56 +0000 (+0000) Subject: lsearch() didn't refund pennies X-Git-Tag: 0.73~133 X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=b7d8fbef1c6d6c4d3d5a91cf8a3dfd8d8da67874;p=cobramush.git lsearch() didn't refund pennies --- diff --git a/src/wiz.c b/src/wiz.c index 6a1f674..f0af0d4 100644 --- a/src/wiz.c +++ b/src/wiz.c @@ -1973,11 +1973,14 @@ raw_search(dbref player, const char *owner, int nargs, const char **args, return -1; } - if (fill_search_spec(player, owner, nargs, args, &spec) < 0) + if (fill_search_spec(player, owner, nargs, args, &spec) < 0) { + giveto(player, FIND_COST); return -1; + } if ((spec.owner != ANY_OWNER && spec.owner != player && !(CanSearch(player, spec.owner) || (spec.type == TYPE_PLAYER)))) { + giveto(player, FIND_COST); notify(player, T("You need a search warrant to do that.")); return -1; }