From 5bc69bc789edb822df4e62fd6aaa9ab811011b1e Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Sun, 21 Mar 2021 11:04:01 +0200 Subject: [PATCH] Update Official.cpp --- module/Misc/Official.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/Misc/Official.cpp b/module/Misc/Official.cpp index e25211e9..af62c5b0 100644 --- a/module/Misc/Official.cpp +++ b/module/Misc/Official.cpp @@ -2255,7 +2255,7 @@ struct LgStream { else if (static_cast< AbstractStaticClassData * >(target.GetTypeTag()) == StaticClassTypeTag< LgPlayer >::Get()) { id = target.CastI< LgPlayer >()->GetIdentifier(); } else STHROWF("Invalid target type"); - if (id > SQMOD_PLAYER_POOL) STHROWF("Invalid player ID"); + if (id >= SQMOD_PLAYER_POOL) STHROWF("Invalid player ID"); _Func->SendClientScriptData(id, m_OutputStreamData, m_OutputStreamEnd); ClearOutput(); }