]> granicus.if.org Git - nethack/commit
avoid mkclass() infinite loop (trunk only)
authornethack.rankin <nethack.rankin>
Thu, 21 Apr 2011 00:29:26 +0000 (00:29 +0000)
committernethack.rankin <nethack.rankin>
Thu, 21 Apr 2011 00:29:26 +0000 (00:29 +0000)
commit95f5e029d87064930dd6d17bd4ca741dfaca7d57
treebdd1509bfa47f5dd5384c1f37de12614401924f7
parentcc03c15978d30d0d09d977e219227b141204ef35
avoid mkclass() infinite loop (trunk only)

     Back on Feb 28, I committed a patch to prevent the special level
loader from generating mail daemons for levels which specified random
demons.  It had a pair of copy+paste mistakes that could result in
mkclass() looping forever.  It was looking at the same monster every
time and if that monster was one which mustn't be generated, it would
just keep repeating.
src/makemon.c