Skip to content

Commit

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

function EGP:ValidEGP( Ent )
if not IsValid( Ent ) then return false end
return GetVar( Ent, "IsEGP", false )
return GetTable( Ent ).IsEGP == true
end
end

Expand Down

0 comments on commit d79b91c

Please sign in to comment.