Update OpsZone.lua

- Fix for new `getCategory` behaviour
This commit is contained in:
Frank 2023-11-16 22:52:13 +01:00
parent 067285f870
commit 75a6a798ac

View File

@ -1025,7 +1025,7 @@ function OPSZONE:Scan()
if ZoneObject then
-- Object category.
local ObjectCategory=ZoneObject:getCategory()
local ObjectCategory=Object.getCategory(ZoneObject)
if ObjectCategory==Object.Category.UNIT and ZoneObject:isExist() and ZoneObject:isActive() then