From 0eae540e51683d86c963b51fbcc2830126f696ab Mon Sep 17 00:00:00 2001 From: tad2020 Date: Wed, 1 Aug 2007 16:20:17 +0000 Subject: [PATCH] change comment to NULL (NIL is ok, NULL is bad) --- wire/lua/autorun/Beam_NetVars.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wire/lua/autorun/Beam_NetVars.lua b/wire/lua/autorun/Beam_NetVars.lua index 493658d..c9c5934 100644 --- a/wire/lua/autorun/Beam_NetVars.lua +++ b/wire/lua/autorun/Beam_NetVars.lua @@ -109,8 +109,8 @@ local function GetNetworkTable( ent, name ) end local function SendNetworkUpdate( VarType, Index, Key, Value, Player ) + if(Player and not (Player:IsValid() and Player:IsPlayer())) then return end // Be sure, Player is not a NULL-Entity, or the server will crash! - if(Player and not (Player:IsValid() and Player:IsPlayer())) then return end; // Be sure, Player is not a NIL-Entity, or the server will crash! umsg.Start( "RcvEntityVarBeam_"..VarType, Player ) umsg.Short( Index ) umsg.String( Key )