[comp.sources.games.bugs] Bug in Nethack 3.0

greg@griffin.itc.gu.oz (Greg Watson) (07/31/89)

It's pretty frustrating when you go into a shop to sell some of your hard
won (stolen?) goods and all you see is:

	Segmentation fault
	griffin%

So here's what I think is causing the problem. It appears to be a typo on
line 929 in shk.c. The diff looks something like this:

929c929
< 	   || otmp->olet == BALL_SYM || ltmp == 0L) {
---
> 	   || obj->olet == BALL_SYM || ltmp == 0L) {

This seems to fix the problem, and no other bugs have cropped up yet.
BTW, if it makes any difference I'm using a Sun4/280 running 4.0.1.

Comments from the authors would be appreciated.

Greg