From 117b932c9f96ddd5129176f5f48fe84d7a52cfb0 Mon Sep 17 00:00:00 2001 From: sruon Date: Wed, 25 Feb 2026 00:25:20 -0700 Subject: [PATCH] Null check before attempting to interrupt item Narrow window where the item can be consumed but PC is still in ItemState due to animation --- src/map/ai/states/item_state.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/map/ai/states/item_state.cpp b/src/map/ai/states/item_state.cpp index 0a2a15ce2e7..e9a0c55729d 100644 --- a/src/map/ai/states/item_state.cpp +++ b/src/map/ai/states/item_state.cpp @@ -263,6 +263,11 @@ auto CItemState::CanChangeState() -> bool void CItemState::TryInterrupt(CBattleEntity* PTarget) { + if (!m_PItem) + { + return; + } + // todo: interrupt on being hit if (PTarget)