Update smn_core.cpp

Fix parameter number
This commit is contained in:
Vladimir 2021-04-03 15:18:38 +03:00 committed by David Anderson
parent c874703136
commit 7aca0cc77f

View File

@ -646,7 +646,7 @@ static cell_t HookPluginUnload(IPluginContext *pContext, const cell_t *params)
return false; return false;
} }
IPluginFunction *pCallback = pContext->GetFunctionById(params[3]); IPluginFunction *pCallback = pContext->GetFunctionById(params[2]);
return scripts->HookPluginUnload(pPlugin, pCallback); return scripts->HookPluginUnload(pPlugin, pCallback);
} }
@ -660,7 +660,7 @@ static cell_t UnhookPluginUnload(IPluginContext *pContext, const cell_t *params)
return false; return false;
} }
IPluginFunction *pCallback = pContext->GetFunctionById(params[3]); IPluginFunction *pCallback = pContext->GetFunctionById(params[2]);
return scripts->UnhookPluginUnload(pPlugin, pCallback); return scripts->UnhookPluginUnload(pPlugin, pCallback);
} }