summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fight.cc
diff options
context:
space:
mode:
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 df0c080620..4976e87c01 100644
--- a/crawl-ref/source/fight.cc
+++ b/crawl-ref/source/fight.cc
@@ -540,7 +540,7 @@ bool melee_attack::check_unrand_effects(bool mondied)
// unrand_entry->fight_func, since that's the function used for
// launched missiles.
if (unrand_entry && unrand_entry->fight_func.melee_effects
- && fires_ammo_type(*weapon) == MI_NONE)
+ && weapon && fires_ammo_type(*weapon) == MI_NONE)
{
unrand_entry->fight_func.melee_effects(weapon, attacker, defender,
mondied);