summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fight.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-12 03:12:54 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-12 03:12:54 +0000
commitd2e316cecd419dc317a1b502ae6733d168fcf083 (patch)
tree6b13945def5baefbd267a84b3087447e26aa80da /crawl-ref/source/fight.cc
parentff8b9f619758f46c52b23fe73138f6ab8ed2353e (diff)
downloadcrawl-ref-d2e316cecd419dc317a1b502ae6733d168fcf083.tar.gz
crawl-ref-d2e316cecd419dc317a1b502ae6733d168fcf083.zip
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
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r--crawl-ref/source/fight.cc2
1 files changed, 1 insertions, 1 deletions
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!