summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ClientHandle.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index 377a84ce9..6585a38b2 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -1640,7 +1640,10 @@ void cClientHandle::HandleUseEntity(UInt32 a_TargetEntityID, bool a_IsLeftClick)
}
a_Entity->TakeDamage(*m_Me);
m_Me->AddFoodExhaustion(0.3);
- m_Me->NotifyFriendlyWolves(a_Entity);
+ if (a_Entity->IsPawn())
+ {
+ m_Me->NotifyFriendlyWolves(static_cast<cPawn*>(a_Entity));
+ }
return true;
}
} Callback(m_Player);