From ff297e307b0a5906dcc89564607dcd39ab635269 Mon Sep 17 00:00:00 2001 From: Mark Ruffner Date: Sun, 7 Aug 2016 12:50:58 -0500 Subject: [PATCH] Fix the captive module from creating attributes when not needed (#4213) * Fix default values Fix default values, so we don't get two custom attributes per unit, even when the unit is not handcuffed/surrendered * Add parentheses to avoid conversion --- addons/captives/CfgEden.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/captives/CfgEden.hpp b/addons/captives/CfgEden.hpp index 98757bd86c..9cb747c5ee 100644 --- a/addons/captives/CfgEden.hpp +++ b/addons/captives/CfgEden.hpp @@ -11,7 +11,7 @@ class Cfg3DEN { expression = QUOTE(if (_value) then {[ARR_3(objNull,[_this],true)] call FUNC(moduleHandcuffed)}); typeName = "BOOL"; condition = "objectBrain"; - defaultValue = false; + defaultValue = "(false)"; }; class ace_isSurrendered { property = QUOTE(ace_isSurrendered); @@ -21,7 +21,7 @@ class Cfg3DEN { expression = QUOTE(if (_value) then {[ARR_3(objNull,[_this],true)] call FUNC(moduleSurrender)}); typeName = "BOOL"; condition = "objectBrain"; - defaultValue = false; + defaultValue = "(false)"; }; }; };