summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells3.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-27 04:20:43 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-27 04:20:43 +0000
commit3c019ba470b167e749e572b8a3d55214aadd03f8 (patch)
treefc4ce848bfd4448fc127b6d321ce4655253a6972 /crawl-ref/source/spells3.cc
parent77235981fc7049409c9e1b76c2f6d4e86fa5ba37 (diff)
downloadcrawl-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.cc3
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];