Skip to content

Commit

Permalink
Fix bad EGPObject invalid function
Browse files Browse the repository at this point in the history
  • Loading branch information
Denneisk committed Dec 2, 2024
1 parent 8f8368c commit 1fc4b7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/entities/gmod_wire_expression2/core/egpobjects.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ local isValid = EGP.EGPObject.IsValid
local hasObject = EGP.HasObject
local egp_create = EGP.Create
local isAllowed = EGP.IsAllowed
local isEGPObject = EGP.IsEGPObject

-- Table of allowed arguments and their types
local EGP_ALLOWED_ARGS =
Expand Down Expand Up @@ -46,7 +47,7 @@ registerType("egpobject", "xeo", NULL_EGPOBJECT,
nil,
nil,
function(v)
return not isValid(v)
return not isEGPObject(v)
end
)

Expand Down

0 comments on commit 1fc4b7b

Please sign in to comment.