From e10d5cb12d979e733cedee3f71b021c553197bce Mon Sep 17 00:00:00 2001 From: Adam Borowski Date: Tue, 3 Nov 2009 23:53:48 +0100 Subject: Cope with old saves with 0-piece slime creatures. Can be reverted once CDO is updated or purged. --- crawl-ref/source/mon-util.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/mon-util.cc') 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. -- cgit v1.2.3-54-g00ecf