diff options
author | gammafunk <gammafunk@gmail.com> | 2014-06-04 06:55:34 -0500 |
---|---|---|
committer | gammafunk <gammafunk@gmail.com> | 2014-06-05 04:22:52 -0500 |
commit | b308769599863ce1e8cac0894484baa7d438aecf (patch) | |
tree | aca17efe7f4539ec176e53773616263b686f31df /crawl-ref/source/dungeon.cc | |
parent | fea44c3dc8e891ce0d88ceb56119ac38a3575356 (diff) | |
download | crawl-ref-b308769599863ce1e8cac0894484baa7d438aecf.tar.gz crawl-ref-b308769599863ce1e8cac0894484baa7d438aecf.zip |
Fix a path-finding crash in the slime wall connectivity fixup
Diffstat (limited to 'crawl-ref/source/dungeon.cc')
-rw-r--r-- | crawl-ref/source/dungeon.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/dungeon.cc b/crawl-ref/source/dungeon.cc index 0f8b02be57..cbaaae7d47 100644 --- a/crawl-ref/source/dungeon.cc +++ b/crawl-ref/source/dungeon.cc @@ -3177,6 +3177,8 @@ static void _slime_connectivity_fixup() // Did the search, now remove any walls adjacent to squares in // the path. + if (!path.size()) + continue; const position_node * current = &(*path[0]); while (current) |