Skip to content

Commit

Permalink
Fix warning compiler in linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
s1lentq committed May 26, 2024
1 parent 0f45ec0 commit c1ccc50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rehlds/rehlds/rehlds_messagemngr_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c1ccc50

Please sign in to comment.