diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-05-18 14:45:46 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-05-18 14:49:02 +0200 |
commit | af7383ebeac5dda6bd1825c6360482f680c815fb (patch) | |
tree | 95061d2487fbd6f3208c1d521c307a5109ffb041 /crawl-ref/source/place.cc | |
parent | 6fe8ef2646b39d3326cfd71597c3093c54f4b7ec (diff) | |
download | crawl-ref-af7383ebeac5dda6bd1825c6360482f680c815fb.tar.gz crawl-ref-af7383ebeac5dda6bd1825c6360482f680c815fb.zip |
Don't let wandering monsters go to hell.
This fixes a crash, since the stair destination would have to be special-cased.
I opted to disable foreign spawns here instead.
Diffstat (limited to 'crawl-ref/source/place.cc')
-rw-r--r-- | crawl-ref/source/place.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/place.cc b/crawl-ref/source/place.cc index 6a0ad7dc04..51a2a26315 100644 --- a/crawl-ref/source/place.cc +++ b/crawl-ref/source/place.cc @@ -47,7 +47,7 @@ bool single_level_branch(branch_type branch) std::string place_name(unsigned short place, bool long_name, bool include_number) { - uint8_t branch = (place >> 8) & 0xFF; + branch_type branch = static_cast<branch_type>((place >> 8) & 0xFF); int lev = place & 0xFF; ASSERT(branch < NUM_BRANCHES); |