diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-27 04:20:43 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-27 04:20:43 +0000 |
commit | 3c019ba470b167e749e572b8a3d55214aadd03f8 (patch) | |
tree | fc4ce848bfd4448fc127b6d321ce4655253a6972 /crawl-ref/source/spells3.cc | |
parent | 77235981fc7049409c9e1b76c2f6d4e86fa5ba37 (diff) | |
download | crawl-ref-3c019ba470b167e749e572b8a3d55214aadd03f8.tar.gz crawl-ref-3c019ba470b167e749e572b8a3d55214aadd03f8.zip |
Apply sorear's fix for [1952521]: Recall skips the first or last
monster.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4691 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells3.cc')
-rw-r--r-- | crawl-ref/source/spells3.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc index 4956ef00e1..a63f9758ac 100644 --- a/crawl-ref/source/spells3.cc +++ b/crawl-ref/source/spells3.cc @@ -1167,7 +1167,8 @@ bool recall(char type_recalled) step_value = -1; } - for (loopy = start_count; loopy != end_count; loopy += step_value) + for (loopy = start_count; loopy != end_count + step_value; + loopy += step_value) { monster = &menv[loopy]; |