Skip to content

Commit 95698ba

Browse files
authored
Fix bad EGPObject invalid function (#3197)
1 parent a722233 commit 95698ba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/entities/gmod_wire_expression2/core/egpobjects.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ local isValid = EGP.EGPObject.IsValid
99
local hasObject = EGP.HasObject
1010
local egp_create = EGP.Create
1111
local isAllowed = EGP.IsAllowed
12+
local isEGPObject = EGP.IsEGPObject
1213

1314
-- Table of allowed arguments and their types
1415
local EGP_ALLOWED_ARGS =
@@ -46,7 +47,7 @@ registerType("egpobject", "xeo", NULL_EGPOBJECT,
4647
nil,
4748
nil,
4849
function(v)
49-
return not isValid(v)
50+
return not isEGPObject(v)
5051
end
5152
)
5253

0 commit comments

Comments
 (0)