From 6ab0c358376fc1ee5cb0f54f0aa63eaf0ea1a5e6 Mon Sep 17 00:00:00 2001 From: Asher Baker Date: Tue, 10 Nov 2015 14:31:02 +0000 Subject: [PATCH] Pre-fill buffer for GetClientAuth* --- core/logic/smn_players.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/logic/smn_players.cpp b/core/logic/smn_players.cpp index 32961ab0..1218959f 100644 --- a/core/logic/smn_players.cpp +++ b/core/logic/smn_players.cpp @@ -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);