2
0
mirror of https://github.com/rehlds/rehlds.git synced 2024-12-27 07:05:43 +03:00

Fix warning compiler in linux build

This commit is contained in:
s1lentq 2024-05-27 05:08:02 +07:00
parent 0f45ec09fa
commit c1ccc5009a

View File

@ -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);