summaryrefslogtreecommitdiffstats
path: root/source/Pawn.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/Pawn.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/Pawn.cpp b/source/Pawn.cpp
index 9e0736d38..451dd3af9 100644
--- a/source/Pawn.cpp
+++ b/source/Pawn.cpp
@@ -124,7 +124,7 @@ void cPawn::KilledBy(cPawn * a_Killer)
short OldHealth = m_Health;
m_Health = 0;
- if (cRoot::Get()->GetPluginManager()->CallHook( cPluginManager::E_PLUGIN_KILLED, 2, this, a_Killer))
+ if (cRoot::Get()->GetPluginManager()->CallHookKilled(*this, a_Killer))
{
// Plugin wants to 'unkill' the pawn. Set health back and abort
m_Health = OldHealth;