diff --git a/Moose Development/Moose/Ops/OpsZone.lua b/Moose Development/Moose/Ops/OpsZone.lua index 63287cbf2..01b7a3b19 100644 --- a/Moose Development/Moose/Ops/OpsZone.lua +++ b/Moose Development/Moose/Ops/OpsZone.lua @@ -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 diff --git a/Moose Development/Moose/Ops/PlayerTask.lua b/Moose Development/Moose/Ops/PlayerTask.lua index 0ad893b7e..c01f75299 100644 --- a/Moose Development/Moose/Ops/PlayerTask.lua +++ b/Moose Development/Moose/Ops/PlayerTask.lua @@ -2951,7 +2951,7 @@ function PLAYERTASKCONTROLLER:_AddTask(Target) task:HandleEvent(EVENTS.Shot) function task:OnEventShot(EventData) local data = EventData -- Core.Event#EVENTDATA EventData - local wcat = data.Weapon:getCategory() -- cat 2 or 3 + local wcat = Object.getCategory(data.Weapon) -- cat 2 or 3 local coord = data.IniUnit:GetCoordinate() or data.IniGroup:GetCoordinate() local vec2 = coord:GetVec2() or {x=0, y=0} local coal = data.IniCoalition