This commit is contained in:
thegrb93 2024-01-04 16:12:01 -05:00 committed by GitHub
parent 857bb81666
commit aa34b0fcfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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