diff --git a/dynhooks_sourcepawn.cpp b/dynhooks_sourcepawn.cpp index 0a334ba..6a1e70d 100644 --- a/dynhooks_sourcepawn.cpp +++ b/dynhooks_sourcepawn.cpp @@ -582,7 +582,7 @@ HookParamsStruct *CDynamicHooksSourcePawn::GetParamStruct() memcpy(params->orgParams, pArgPtr, stackSize); } - memset(params->newParams, NULL, paramsSize); + memset(params->newParams, 0, paramsSize); memset(params->isChanged, false, numArgs * sizeof(bool)); int firstArg = 0; diff --git a/dynhooks_sourcepawn.h b/dynhooks_sourcepawn.h index fd81522..4f0e656 100644 --- a/dynhooks_sourcepawn.h +++ b/dynhooks_sourcepawn.h @@ -24,7 +24,7 @@ public: CDynamicHooksSourcePawn(HookSetup *setup, CHook *pDetour, IPluginFunction *pCallback, bool post); HookReturnStruct *GetReturnStruct(); - HookParamsStruct *CDynamicHooksSourcePawn::GetParamStruct(); + HookParamsStruct *GetParamStruct(); void UpdateParamsFromStruct(HookParamsStruct *params); public: