summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells1.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/spells1.cc')
-rw-r--r--crawl-ref/source/spells1.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc
index ddf1983f16..247e12f8d6 100644
--- a/crawl-ref/source/spells1.cc
+++ b/crawl-ref/source/spells1.cc
@@ -737,19 +737,16 @@ void cast_deaths_door(int pow)
return;
}
-// can't use beam variables here, because of monster_die and the puffs of smoke
void abjuration(int pow)
{
- struct monsters *monster = 0; // NULL {dlb}
-
mpr("Send 'em back where they came from!");
// Scale power into something comparable to summon lifetime.
const int abjdur = pow * 12;
- for (int ab = 0; ab < MAX_MONSTERS; ab++)
+ for (int i = 0; i < MAX_MONSTERS; ++i)
{
- monster = &menv[ab];
+ monsters* const monster = &menv[i];
if (monster->type == -1 || !mons_near(monster))
continue;