From 3fa4832c1cc88a4ce41676467d87e3cd1d805d2c Mon Sep 17 00:00:00 2001 From: Kyle Sanderson Date: Tue, 26 Dec 2017 15:37:08 -0800 Subject: [PATCH] Default last_command_client_ to 0 instead of -1. Fix from: https://github.com/alliedmodders/sourcemod/commit/fe16e8e47cd854c482ba04f292eaa1e2d4e2e34b Docs: https://github.com/alliedmodders/hl2sdk/blob/sdk2013/tier1/commandbuffer.cpp#L568 --- core/GameHooks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/GameHooks.cpp b/core/GameHooks.cpp index 5606932ed..04b7a4104 100644 --- a/core/GameHooks.cpp +++ b/core/GameHooks.cpp @@ -51,7 +51,7 @@ SH_DECL_HOOK1_void(IServerGameClients, SetCommandClient, SH_NOATTRIB, false, int GameHooks::GameHooks() : client_cvar_query_mode_(ClientCvarQueryMode::Unavailable), - last_command_client_(-1) + last_command_client_(0) { }