Fix SDKCall for int64 Address (#2435)

This commit is contained in:
Benoist
2026-04-09 14:24:12 +02:00
committed by GitHub
parent 067ee97d99
commit 4f7b26f73b
+2 -2
View File
@@ -546,9 +546,9 @@ static cell_t SDKCall(IPluginContext *pContext, const cell_t *params)
}
return *addr ? 1 : 0;
} else if (vc->retinfo->vtype == Valve_SMAddress) {
if (numparams < 3)
if (numparams < 2)
{
return pContext->ThrowNativeError("Expected argument (3) for VirtualAddress storage");
return pContext->ThrowNativeError("Expected argument (2) for Address storage");
}
void *addr = *(void **)vc->retbuf;
if (vc->retinfo->flags & PASSFLAG_ASPOINTER)