diff --git a/rehlds/rehlds/rehlds_messagemngr_impl.cpp b/rehlds/rehlds/rehlds_messagemngr_impl.cpp index dfe2780..4b381de 100644 --- a/rehlds/rehlds/rehlds_messagemngr_impl.cpp +++ b/rehlds/rehlds/rehlds_messagemngr_impl.cpp @@ -562,7 +562,7 @@ void MessageManagerImpl::registerHook(int msg_id, hookfunc_t handler, int priori if (!m_hooks[msg_id]) m_hooks[msg_id] = new HookRegistry_t; - if (m_hooks[msg_id]->findHook(handler)) + if (m_hooks[msg_id]->findHook((void *)handler)) return; // already registered m_hooks[msg_id]->registerHook(handler, priority);