Fixed "not connected" error in reserved slots plugin (bug 5158, r=psychonic).
authorotstrel <otstrel@gmail.com>
Thu Nov 03 09:05:40 2011 -0400 (2011-11-03)
changeset 3430c3a152ed305f
parent 3429 440d4dbbbb7a
child 3431 f953b07ba025
Fixed "not connected" error in reserved slots plugin (bug 5158, r=psychonic).
plugins/reservedslots.sp
     1.1 --- a/plugins/reservedslots.sp	Wed Nov 02 18:24:12 2011 -0400
     1.2 +++ b/plugins/reservedslots.sp	Thu Nov 03 09:05:40 2011 -0400
     1.3 @@ -86,6 +86,9 @@
     1.4  	{
     1.5  		for (new i = 1; i <= MaxClients; i++)
     1.6  		{
     1.7 +			if (!IsClientConnected(i))
     1.8 +				continue;
     1.9 +			
    1.10  			if (IsClientSourceTV(i))
    1.11  			{
    1.12  				g_SourceTV = i;