Pre-fill buffer for GetClientAuth*

This commit is contained in:
Asher Baker 2015-11-10 14:31:02 +00:00
parent c3e5d62bf6
commit 6ab0c35837

View File

@ -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);