From 65b3482828c0293582b5abdec9b0109b7574e32a Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Sun, 7 Aug 2016 01:56:11 +0300 Subject: [PATCH] Don't validate the instance when setting the spectator so null instances can be used and disable the spectating. --- source/Entity/Player.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/source/Entity/Player.cpp b/source/Entity/Player.cpp index 80f5b9b8..087cf232 100644 --- a/source/Entity/Player.cpp +++ b/source/Entity/Player.cpp @@ -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