Skip to content

Commit

Permalink
more duplicate gold
Browse files Browse the repository at this point in the history
     My previous fix (trap.c) prevented the panic, but didn't actually stop
gold possessed by a reanimated statue from doubling.  That problem was due
to how the monster info was saved rather than to how it was restored.
The previous fixes entry applies.
  • Loading branch information
nethack.rankin committed Apr 21, 2005
1 parent 0f13d56 commit 35a35de
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mkobj.c
Original file line number Diff line number Diff line change
Expand Up @@ -1084,6 +1084,10 @@ struct monst *mtmp;
mtmp2->nmon = (struct monst *)0;
mtmp2->data = (struct permonst *)0;
mtmp2->minvent = (struct obj *)0;
#ifndef GOLDOBJ
/* not a pointer but is discarded along with minvent */
mtmp2->mgold = 0L;
#endif
otmp->oattached = OATTACHED_MONST; /* mark it */
}
return otmp;
Expand Down

0 comments on commit 35a35de

Please sign in to comment.