From b6caaf33181efbd7ba3064a5db6b2f5c485a6e7d Mon Sep 17 00:00:00 2001 From: johnb432 <58661205+johnb432@users.noreply.github.com> Date: Fri, 1 Nov 2024 06:00:43 +0100 Subject: [PATCH] Medical Treatment - Fix `GET_FUNCTION` macro (#10453) Update script_component.hpp --- addons/medical_treatment/script_component.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/medical_treatment/script_component.hpp b/addons/medical_treatment/script_component.hpp index 6a334ed72a3..e315dd94b3a 100644 --- a/addons/medical_treatment/script_component.hpp +++ b/addons/medical_treatment/script_component.hpp @@ -20,7 +20,7 @@ // Returns a text config entry as compiled code or variable from missionNamespace #define GET_FUNCTION(var,cfg) \ private var = getText (cfg); \ - if (isNil var) then { \ + if (missionNamespace isNil var) then { \ var = compile var; \ } else { \ var = missionNamespace getVariable var; \