diff options
author | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-14 22:21:58 -0800 |
---|---|---|
committer | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-15 01:20:33 -0800 |
commit | 6cda5fe31dffd0c018008e0e5d8921f9c0cc8a43 (patch) | |
tree | 85890733977b6f8e4f103045693c468d49a56261 /crawl-ref/source/mon-stuff.cc | |
parent | a04238cb7b08fd82298442f2eb14fbc9c922a98b (diff) | |
download | crawl-ref-6cda5fe31dffd0c018008e0e5d8921f9c0cc8a43.tar.gz crawl-ref-6cda5fe31dffd0c018008e0e5d8921f9c0cc8a43.zip |
teleport.cc: hack to deal with memory bug
random_space_weighted() sometimes gets this weird memory bug which
causes the return value to be random (and usually out-of-bounds).
"Fixed" by testing the result against in_bounds()
Diffstat (limited to 'crawl-ref/source/mon-stuff.cc')
0 files changed, 0 insertions, 0 deletions