Pre-fill buffer for GetClientAuth*
This commit is contained in:
parent
c3e5d62bf6
commit
6ab0c35837
@ -347,6 +347,8 @@ enum class AuthIdType
|
||||
|
||||
static cell_t SteamIdToLocal(IPluginContext *pCtx, int index, AuthIdType authType, cell_t local_addr, size_t bytes, bool validate)
|
||||
{
|
||||
pCtx->StringToLocal(local_addr, bytes, "STEAM_ID_STOP_IGNORING_RETVALS");
|
||||
|
||||
if ((index < 1) || (index > playerhelpers->GetMaxClients()))
|
||||
{
|
||||
return pCtx->ThrowNativeError("Client index %d is invalid", index);
|
||||
|
Loading…
Reference in New Issue
Block a user