From 7307796e89eff23ac0a89dbc871709b3abda03d7 Mon Sep 17 00:00:00 2001 From: Glowbal Date: Sun, 1 Mar 2015 18:03:24 +0100 Subject: [PATCH] Fixed array --- addons/medical/functions/fnc_parseConfigForInjuries.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/medical/functions/fnc_parseConfigForInjuries.sqf b/addons/medical/functions/fnc_parseConfigForInjuries.sqf index 7b872a497a..3ef3b4c684 100644 --- a/addons/medical/functions/fnc_parseConfigForInjuries.sqf +++ b/addons/medical/functions/fnc_parseConfigForInjuries.sqf @@ -59,7 +59,7 @@ if (isClass _woundsConfig) then { _pain = if (isNumber(_entry >> "pain")) then { getNumber(_entry >> "pain");} else {0}; _minDamage = if (isNumber(_entry >> "minDamage")) then { getNumber(_entry >> "minDamage");} else {0}; _causes = if (isArray(_entry >> "causes")) then { getArray(_entry >> "causes");} else {[]}; - _classDisplayName = if (isText(_entry >> "name")) then { getText(_entry >> "name");} else {[]}; + _classDisplayName = if (isText(_entry >> "name")) then { getText(_entry >> "name");} else {_classType}; if (["Minor"] call _parseForSubClassWounds || ["Medium"] call _parseForSubClassWounds || ["Large"] call _parseForSubClassWounds) exitwith {}; // continue to the next one // There were no subclasses, so we will add this one instead.