Medical Statemachine - Ensure bleedout condition string is code (#7998)

This commit is contained in:
PabstMirror 2020-11-10 10:06:45 -06:00 committed by GitHub
parent 92cd367765
commit a621d2eb72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)};
};
};