summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/hiscores.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-03 10:19:57 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-03 10:19:57 +0000
commit5ac1e751c170bbe8e7537959bfc6fe0b3ff6b876 (patch)
tree330f8d030136237437fcbca7911651112229e1f9 /crawl-ref/source/hiscores.cc
parent8b8e2cc30880d2b908507a3e5c39570cdd0eeda0 (diff)
downloadcrawl-ref-5ac1e751c170bbe8e7537959bfc6fe0b3ff6b876.tar.gz
crawl-ref-5ac1e751c170bbe8e7537959bfc6fe0b3ff6b876.zip
Fixed bouncing lightning crash. My fault as usual. :(
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1197 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/hiscores.cc')
-rw-r--r--crawl-ref/source/hiscores.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/hiscores.cc b/crawl-ref/source/hiscores.cc
index 1ef0bb6e19..cd28adc53e 100644
--- a/crawl-ref/source/hiscores.cc
+++ b/crawl-ref/source/hiscores.cc
@@ -942,8 +942,8 @@ void scorefile_entry::init_death_cause(int dam, int dsrc,
{
const monsters *monster = &menv[death_source];
- if (monster->type > 0 || monster->type <= NUM_MONSTERS)
- {
+ if (monster->type >= 0 && monster->type < NUM_MONSTERS)
+ {
death_source = monster->type;
mon_num = monster->number;