diff --git a/lua/DCS-gRPC/methods/mission.lua b/lua/DCS-gRPC/methods/mission.lua index bef294cf..db3fce29 100644 --- a/lua/DCS-gRPC/methods/mission.lua +++ b/lua/DCS-gRPC/methods/mission.lua @@ -5,7 +5,7 @@ local function exporter(object) return nil end - local category = object:getCategory() + local category = Object.getCategory(object) -- change for DCS API fixes in getcategory() if category == Object.Category.BASE or object.className_ == 'Airbase' then -- carriers are of category unit, but are a Airbase class @@ -35,7 +35,7 @@ local function typed_exporter(object) end local grpcTable = {} - local category = object:getCategory() + local category = Object.getCategory(object) if category == Object.Category.BASE or object.className_ == 'Airbase' then grpcTable.airbase = exporter(object) diff --git a/lua/DCS-gRPC/methods/unit.lua b/lua/DCS-gRPC/methods/unit.lua index c2ad7d5c..1f3385eb 100644 --- a/lua/DCS-gRPC/methods/unit.lua +++ b/lua/DCS-gRPC/methods/unit.lua @@ -17,7 +17,7 @@ GRPC.methods.getRadar = function(params) }) end - local category = object:getCategory() + local category = Object.getCategory(object)-- change for DCS API fixes in getcategory() local grpcTable = {} if(category == Object.Category.UNIT) then