diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-01-28 17:54:11 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-01-28 17:54:11 +0100 |
commit | 71bbf2d44ba5fc00fcb15ed96aff083342309498 (patch) | |
tree | 94657c14eddc2f81fe55d8c6a15e22165f6d7897 /source/PluginManager.cpp | |
parent | Updated HookNotify with the hook renaming. (diff) | |
download | cuberite-71bbf2d44ba5fc00fcb15ed96aff083342309498.tar cuberite-71bbf2d44ba5fc00fcb15ed96aff083342309498.tar.gz cuberite-71bbf2d44ba5fc00fcb15ed96aff083342309498.tar.bz2 cuberite-71bbf2d44ba5fc00fcb15ed96aff083342309498.tar.lz cuberite-71bbf2d44ba5fc00fcb15ed96aff083342309498.tar.xz cuberite-71bbf2d44ba5fc00fcb15ed96aff083342309498.tar.zst cuberite-71bbf2d44ba5fc00fcb15ed96aff083342309498.zip |
Diffstat (limited to 'source/PluginManager.cpp')
-rw-r--r-- | source/PluginManager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/PluginManager.cpp b/source/PluginManager.cpp index e7a4329ca..921955ba4 100644 --- a/source/PluginManager.cpp +++ b/source/PluginManager.cpp @@ -407,16 +407,16 @@ bool cPluginManager::CallHookHandshake(cClientHandle * a_ClientHandle, const ASt -bool cPluginManager::CallHookKilled(cPawn & a_Victim, cEntity * a_Killer) +bool cPluginManager::CallHookKilling(cPawn & a_Victim, cEntity * a_Killer) { - HookMap::iterator Plugins = m_Hooks.find(HOOK_KILLED); + HookMap::iterator Plugins = m_Hooks.find(HOOK_KILLING); if (Plugins == m_Hooks.end()) { return false; } for (PluginList::iterator itr = Plugins->second.begin(); itr != Plugins->second.end(); ++itr) { - if ((*itr)->OnKilled(a_Victim, a_Killer)) + if ((*itr)->OnKilling(a_Victim, a_Killer)) { return true; } |