From 43e684071933adef93040e8d4b830d5c6b71cf9a Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sat, 12 Jan 2013 04:46:01 +0000 Subject: Merged branch "branches/hooks" into "trunk". git-svn-id: http://mc-server.googlecode.com/svn/trunk@1139 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Pawn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/Pawn.cpp') 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; -- cgit v1.2.3