summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/spells2.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc
index 4afc154f26..ffc771c4d6 100644
--- a/crawl-ref/source/spells2.cc
+++ b/crawl-ref/source/spells2.cc
@@ -1243,7 +1243,7 @@ bool cast_summon_swarm(int pow, god_type god,
break;
}
- bool friendly = (force_hostile) ? false : (random2(pow) > 7);
+ bool friendly = !force_hostile ? (random2(pow) > 7) : false;
if (create_monster(
mgen_data(mon,