From b7a5e8dd85c317141d9eb3dccd8570ddd2eb543a Mon Sep 17 00:00:00 2001 From: Applevangelist Date: Thu, 23 Mar 2023 08:47:04 +0100 Subject: [PATCH 1/2] Add'l check in UNIT:GetLife() --- Moose Development/Moose/Wrapper/Unit.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Moose Development/Moose/Wrapper/Unit.lua b/Moose Development/Moose/Wrapper/Unit.lua index e5490a312..5eee9236a 100644 --- a/Moose Development/Moose/Wrapper/Unit.lua +++ b/Moose Development/Moose/Wrapper/Unit.lua @@ -920,7 +920,7 @@ function UNIT:GetLife() local DCSUnit = self:GetDCSObject() - if DCSUnit then + if DCSUnit and DCSUnit:isExist() then local UnitLife = DCSUnit:getLife() return UnitLife end From 5f108aec234e8a87d4948241881062c0d4f65756 Mon Sep 17 00:00:00 2001 From: Applevangelist Date: Thu, 23 Mar 2023 09:21:16 +0100 Subject: [PATCH 2/2] Typo fix --- Moose Development/Moose/Ops/RecoveryTanker.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Moose Development/Moose/Ops/RecoveryTanker.lua b/Moose Development/Moose/Ops/RecoveryTanker.lua index be56c16e4..0489ccb3d 100644 --- a/Moose Development/Moose/Ops/RecoveryTanker.lua +++ b/Moose Development/Moose/Ops/RecoveryTanker.lua @@ -198,7 +198,7 @@ -- The first parameter *callsignname* defines the name (1=Texaco, 2=Arco, 3=Shell). The second (optional) parameter specifies the first number and has to be between 1-9. -- Also see [DCS_enum_callsigns](https://wiki.hoggitworld.com/view/DCS_enum_callsigns) and [DCS_command_setCallsign](https://wiki.hoggitworld.com/view/DCS_command_setCallsign). -- --- TexacoStennis:SetCAllsign(CALLSIGN.Tanker.Arco) +-- TexacoStennis:SetCallsign(CALLSIGN.Tanker.Arco) -- -- For convenience, MOOSE has a CALLSIGN enumerator introduced. --