mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Medical - Handle wound hashmaps deserialized as CBA_namespaces (#9245)
This commit is contained in:
parent
45af0cdca0
commit
29b5eb97a9
@ -56,6 +56,13 @@ private _state = [_json] call CBA_fnc_parseJSON;
|
||||
_x params ["_var", "_default"];
|
||||
private _value = _state getVariable _x;
|
||||
|
||||
// Handle wound hashmaps deserialized as CBA_namespaces
|
||||
if (typeName _value == "LOCATION") then {
|
||||
private _keys = allVariables _value;
|
||||
private _values = _keys apply {_value getVariable _x};
|
||||
_value = _keys createHashMapFromArray _values;
|
||||
};
|
||||
|
||||
// Treat null as nil
|
||||
if (_value isEqualTo objNull) then {
|
||||
_value = _default;
|
||||
|
Loading…
Reference in New Issue
Block a user