]> granicus.if.org Git - nethack/commit
take_gold() crash with GOLDOBJ
authornethack.allison <nethack.allison>
Thu, 29 Aug 2002 02:23:47 +0000 (02:23 +0000)
committernethack.allison <nethack.allison>
Thu, 29 Aug 2002 02:23:47 +0000 (02:23 +0000)
commit510ae5b5f252b2389c600c71503791b391f8bf14
tree474f5d507fa15606688278260b147e901f350f65
parentd618afc87aae3ce3056c0f9e7cb407418fb9da6c
take_gold() crash with GOLDOBJ
Possible fix for B10001.
When the code went into case 3 in cursed_book(),
the game hung in an endless loop in take_gold().
The call stack was:
    take_gold() line 22 + 10 bytes
    cursed_book(int 2) line 124
    study_book(obj * 0x00968860) line 421 + 19 bytes
    doread() line 130 + 9 bytes
    rhack(char * 0x005b8eac in_line) line 1813 + 3 bytes
    moveloop() line 405 + 7 bytes
    main(int 3, char * * 0x00962ac0) line 93
doc/fixes34.1
src/sit.c