summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/teleport.h
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2014-03-06 11:56:02 -0700
committerSteve Melenchuk <smelenchuk@gmail.com>2014-03-06 11:56:02 -0700
commit587b4fded1ad0b496cce0a708282ca00d3c1dc84 (patch)
treea729f912e7582b8ebdc584e59629f42842ecf041 /crawl-ref/source/teleport.h
parent6f24510ddd6b1be80c396e74d537a9a915535ebc (diff)
downloadcrawl-ref-587b4fded1ad0b496cce0a708282ca00d3c1dc84.tar.gz
crawl-ref-587b4fded1ad0b496cce0a708282ca00d3c1dc84.zip
Don't crash on semicontrolled blink (#8236).
Broken by a5274fd.
Diffstat (limited to 'crawl-ref/source/teleport.h')
-rw-r--r--crawl-ref/source/teleport.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/teleport.h b/crawl-ref/source/teleport.h
index 457943d469..fd724a09d6 100644
--- a/crawl-ref/source/teleport.h
+++ b/crawl-ref/source/teleport.h
@@ -13,7 +13,8 @@ void blink_close(monster* mon);
bool valid_blink_destination(const actor* moved, const coord_def& target,
bool forbid_sanctuary = false,
bool forbid_unhabitable = true);
-bool random_near_space(const coord_def& origin, coord_def& target,
+bool random_near_space(const actor* victim,
+ const coord_def& origin, coord_def& target,
bool allow_adjacent = false,
bool forbid_sanctuary = false,
bool forbid_unhabitable = true);