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:
parent
29b0f8d4c9
commit
65b3482828
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user