summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/mon-util.cc')
-rw-r--r--crawl-ref/source/mon-util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc
index 1b1db5653d..a389cd6c16 100644
--- a/crawl-ref/source/mon-util.cc
+++ b/crawl-ref/source/mon-util.cc
@@ -1316,7 +1316,7 @@ int exper_value(const monsters *monster)
// Hacks to make merged slime creatures not worth so much exp. We
// will calculate the experience we would get for 1 blob, and then
// just multiply it so that exp is linear with blobs merged. -cao
- if (monster->mons_species() == MONS_SLIME_CREATURE)
+ if (monster->mons_species() == MONS_SLIME_CREATURE && monster->number)
maxhp /= monster->number;
// These are some values we care about.