[comp.sources.games.bugs] NetHack bugfix

izchak@linc.cis.upenn.edu (Izchak Miller) (10/01/89)

It seems that we slipped.  Changes were made in shk.c and a
needed check was left out.  Please apply the following patch as
a stop-gap measure (after applying Patch 4).  This fix will be
repeated in Patch 5.

Also, please remember to refresh your Make files with the Patchlevel 4
versions.  Failure to do so will get you compiler complaints.

-Izchak
--------------------------
*** old/shk.c	Tue Sep 26 00:58:55 1989
--- shk.c	Sat Sep 30 21:57:35 1989
***************
*** 925,931
  
  	if(!costly_spot(u.ux,u.uy))
  		return;
! 	subfrombill(obj);
  	/* you dropped something of your own - probably want to sell it */
  	if(shopkeeper->msleep || shopkeeper->mfroz || !inhishop(shopkeeper))
  		return;

--- 925,934 -----
  
  	if(!costly_spot(u.ux,u.uy))
  		return;
! 	if(obj->unpaid) {
! 		subfrombill(obj);
! 		return;
! 	}
  	/* you dropped something of your own - probably want to sell it */
  	if(shopkeeper->msleep || shopkeeper->mfroz || !inhishop(shopkeeper))
  		return;