1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-02-20 19:57:12 +01:00

Don't validate the instance when setting the spectator so null instances can be used and disable the spectating.

This commit is contained in:
Sandu Liviu Catalin 2016-08-07 01:56:11 +03:00
parent 29b0f8d4c9
commit 65b3482828

View File

@ -1190,11 +1190,6 @@ Object & CPlayer::GetSpectator() const
// ------------------------------------------------------------------------------------------------
void CPlayer::SetSpectator(CPlayer & target) const
{
// Is the specified player even valid?
if (!target.IsActive())
{
STHROWF("Invalid player argument: null");
}
// Validate the managed identifier
Validate();
// Perform the requested operation