diff options
Diffstat (limited to 'crawl-ref/source/hiscores.cc')
-rw-r--r-- | crawl-ref/source/hiscores.cc | 4 |
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; |