summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells3.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/spells3.cc')
-rw-r--r--crawl-ref/source/spells3.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc
index 0e552a2355..2965ace0a3 100644
--- a/crawl-ref/source/spells3.cc
+++ b/crawl-ref/source/spells3.cc
@@ -686,9 +686,9 @@ bool receive_corpses(int pow, coord_def where)
// Find an appropriate monster corpse.
monster_type mon_type = MONS_PROGRAM_BUG;
int adjusted_power = 0;
- for (int i = 0; i < 200 && !mons_class_can_be_zombified(mon_type); i++)
+ for (int i = 0; i < 200 && !mons_class_can_be_zombified(mon_type); ++i)
{
- adjusted_power = std::min(pow/4,random2(random2(pow)));
+ adjusted_power = std::min(pow / 4, random2(random2(pow)));
mon_type = pick_local_zombifiable_monster_type(adjusted_power);
}