From c84ac50bad546a84ef77d4281a9cbe71d9d26a35 Mon Sep 17 00:00:00 2001 From: greatguys1 <24220703+greatguys1@users.noreply.github.com> Date: Mon, 9 Mar 2026 22:47:21 -0700 Subject: [PATCH] Fix crash from weapons dropped from monsters Fixes calruin2 crash --- src/game/shared/weapons/giattack.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/shared/weapons/giattack.cpp b/src/game/shared/weapons/giattack.cpp index 78b440c6..772ef14f 100644 --- a/src/game/shared/weapons/giattack.cpp +++ b/src/game/shared/weapons/giattack.cpp @@ -187,7 +187,7 @@ bool CGenericItem::Attack_CanAttack() { if (!m_Attacks.size()) return false; //Must have registered an attack - if (!m_pOwner || !m_pOwner->IsAlive()) + if (!m_pOwner || !m_pPlayer || !m_pOwner->IsAlive()) return false; //Owner must be alive if (m_Location != ITEMPOS_HANDS) return false; //Must be in owner's hands