mirror of
https://github.com/rehlds/rehlds.git
synced 2024-12-27 23:25:45 +03:00
Fix warning compiler in linux build
This commit is contained in:
parent
0f45ec09fa
commit
c1ccc5009a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user