X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=misc.c;h=0c2a5439edf9aec4ab7492d0a83526e3326e3072;hb=ca7ac4063f162290491c68124a13d75f2f5c010a;hp=be2599098d70d5398e12934485ab982299e8b87d;hpb=da6a090b833070da1726a92d5db3b476c2313050;p=open-adventure.git diff --git a/misc.c b/misc.c index be25990..0c2a543 100644 --- a/misc.c +++ b/misc.c @@ -607,7 +607,8 @@ void drop(obj_t object, loc_t where) --game.holdng; game.place[object] = where; } - if (where <= 0) + if (where == LOC_NOWHERE || + where == CARRIED) return; game.link[object] = game.atloc[where]; game.atloc[where] = object;