From 3c019ba470b167e749e572b8a3d55214aadd03f8 Mon Sep 17 00:00:00 2001 From: dolorous Date: Sun, 27 Apr 2008 04:20:43 +0000 Subject: 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 --- crawl-ref/source/spells3.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/spells3.cc') 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]; -- cgit v1.2.3-54-g00ecf