Fix bad EGPObject invalid function (#3197)

This commit is contained in:
Denneisk 2024-12-03 15:54:11 +00:00 committed by GitHub
parent a722233f1a
commit 95698bad74
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 =
@ -46,7 +47,7 @@ registerType("egpobject", "xeo", NULL_EGPOBJECT,
nil,
nil,
function(v)
return not isValid(v)
return not isEGPObject(v)
end
)