[Hide Content]From 8778600e6cd563a3b43c4e583ada4c6a95744e43 Mon Sep 17 00:00:00 2001
From: unknown <Neon@.(none)>
Date: Sun, 24 Jul 2011 10:44:53 +0900
Subject: [PATCH] Fixes crash when casting Orb spell.
---
crawl-ref/source/mon-project.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/crawl-ref/source/mon-project.cc b/crawl-ref/source/mon-project.cc
index 841b0f3..f9ccce9 100644
--- a/crawl-ref/source/mon-project.cc
+++ b/crawl-ref/source/mon-project.cc
@@ -36,7 +36,7 @@ spret_type cast_iood(actor *caster, int pow, bolt *beam, float vx, float vy,
int foe, bool fail)
{
const bool is_player = caster->atype() == ACT_PLAYER;
- if (is_player && !player_tracer(ZAP_IOOD, pow, *beam))
+ if (beam && is_player && !player_tracer(ZAP_IOOD, pow, *beam))
return SPRET_ABORT;
fail_check();
--
1.7.5.GIT