1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 00:37:15 +01:00

Update Official.cpp

This commit is contained in:
Sandu Liviu Catalin 2021-03-21 11:04:01 +02:00
parent 8dc4d353e2
commit 5bc69bc789

View File

@ -2255,7 +2255,7 @@ struct LgStream {
else if (static_cast< AbstractStaticClassData * >(target.GetTypeTag()) == StaticClassTypeTag< LgPlayer >::Get()) { else if (static_cast< AbstractStaticClassData * >(target.GetTypeTag()) == StaticClassTypeTag< LgPlayer >::Get()) {
id = target.CastI< LgPlayer >()->GetIdentifier(); id = target.CastI< LgPlayer >()->GetIdentifier();
} else STHROWF("Invalid target type"); } 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); _Func->SendClientScriptData(id, m_OutputStreamData, m_OutputStreamEnd);
ClearOutput(); ClearOutput();
} }