[net.games.hack] bug in 1.0.3 hack.engrave.c

pld@mit-athena.UUCP (Peter L DeWolf) (07/31/85)

When you use the "E-" command, certain non-VAX versions of hack will crash.
The problem is that a zero pointer is being follwed.  Here is a context
diff of the correction.

*** hack.engrave.c.orig	Wed Jul 24 11:10:10 1985
--- hack.engrave.c	Wed Jul 31 11:33:37 1985
***************
*** 141,147
  
  	if(otmp == &zeroobj)
  		otmp = 0;
! 	if(otmp->otyp == WAN_FIRE && otmp->spe) {
  		type = BURN;
  		otmp->spe--;
  	} else {

--- 141,147 -----
  
  	if(otmp == &zeroobj)
  		otmp = 0;
! 	if(otmp && otmp->otyp == WAN_FIRE && otmp->spe) {
  		type = BURN;
  		otmp->spe--;
  	} else {