summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index e9a0160bea..6e80713c97 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -2312,11 +2312,9 @@ void throw_noise(actor* act, const bolt &pbolt, const item_def &ammo)
{
const item_def* launcher = act->weapon();
- if (launcher == NULL)
+ if (launcher == NULL || launcher->base_type != OBJ_WEAPONS)
return;
- ASSERT(launcher->base_type == OBJ_WEAPONS);
-
if (is_launched(act, launcher, ammo) != LRET_LAUNCHED)
return;