X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=misc.c;h=0c2a5439edf9aec4ab7492d0a83526e3326e3072;hp=be2599098d70d5398e12934485ab982299e8b87d;hb=8f5c262e6dc953447f1a47b45aa045353d97f765;hpb=73608b6307938818e32c57ae2eb536e19b10480e 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;