Skip to content

Commit d0d342a

Browse files
committed
Fix invalid DHookParam.IsNull
1 parent bf99e26 commit d0d342a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/dhooks/src/natives/dhookparam.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ cell_t DHookParam_IsNullParam(SourcePawn::IPluginContext* context, const cell_t*
512512

513513
const auto& var = obj->GetCapsule()->GetParameters()[index];
514514
if (sp::HookParamTypeIsPtr(var.dhook_type)) {
515-
return (*obj->Get<void*>(index) != nullptr) ? 1 : 0;
515+
return (*obj->Get<void*>(index) == nullptr) ? 1 : 0;
516516
}
517517
return context->ThrowNativeError("Param is not a pointer!");
518518
}

0 commit comments

Comments
 (0)