Skip to content

Commit

Permalink
Use Entity.IsValid instead of _G.IsValid
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonsturgeon committed Jan 4, 2024
1 parent d79b91c commit 34ef917
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/entities/gmod_wire_egp/lib/egplib/usefulfunctions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,9 @@ end
-- Other
--------------------------------------------------------
do
local GetTable = FindMetaTable( "Entity" ).GetTable
local EntMeta = FindMetaTable( "Entity" )
local IsValid = EntMeta.IsValid
local GetTable = EntMeta.GetTable

function EGP:ValidEGP( Ent )
if not IsValid( Ent ) then return false end
Expand Down

0 comments on commit 34ef917

Please sign in to comment.