From a621d2eb72e82a2246f339da19b6317600a55a95 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Tue, 10 Nov 2020 10:06:45 -0600 Subject: [PATCH] Medical Statemachine - Ensure bleedout condition string is code (#7998) --- addons/medical_statemachine/Statemachine.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/medical_statemachine/Statemachine.hpp b/addons/medical_statemachine/Statemachine.hpp index 2aaba197e2..eecb6a236c 100644 --- a/addons/medical_statemachine/Statemachine.hpp +++ b/addons/medical_statemachine/Statemachine.hpp @@ -103,7 +103,7 @@ class ACE_Medical_StateMachine { }; class Bleedout { targetState = "Dead"; - condition = QGVAR(cardiacArrestBleedoutEnabled); + condition = QUOTE((GVAR(cardiacArrestBleedoutEnabled))); // wrap to ensure cba uses this as code and not a direct variable events[] = {QEGVAR(medical,Bleedout)}; }; };