From d2e316cecd419dc317a1b502ae6733d168fcf083 Mon Sep 17 00:00:00 2001 From: zelgadis Date: Mon, 12 Jan 2009 03:12:54 +0000 Subject: Fix bug #2498696: animating corpses which were killed by chaos spawn causing an assertion. (Maybe CrawlStoreValue should do a cast when possible instead of asserting in a situation like this?) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8420 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/fight.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/fight.cc') diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc index e9d72d135c..f9ed4f9f2c 100644 --- a/crawl-ref/source/fight.cc +++ b/crawl-ref/source/fight.cc @@ -2531,7 +2531,7 @@ static void _find_remains(monsters* mon, int &corpse_class, int &corpse_index, } // If it's a hydra the number of heads must match. - if ((int) mon->number != si->props[MONSTER_NUMBER].get_long()) + if ((short) mon->number != si->props[MONSTER_NUMBER].get_short()) break; // Got it! -- cgit v1.2.3-54-g00ecf