diff --git a/lua/entities/gmod_wire_egp/lib/egplib/usefulfunctions.lua b/lua/entities/gmod_wire_egp/lib/egplib/usefulfunctions.lua index 6a8fc55dcd..c5d74c278a 100644 --- a/lua/entities/gmod_wire_egp/lib/egplib/usefulfunctions.lua +++ b/lua/entities/gmod_wire_egp/lib/egplib/usefulfunctions.lua @@ -234,8 +234,7 @@ do local GetTable = EntMeta.GetTable function EGP:ValidEGP( Ent ) - if not IsValid( Ent ) then return false end - return GetTable( Ent ).IsEGP == true + return IsValid( Ent ) and GetTable( Ent ).IsEGP == true end end