From 69a869ed2c8ddbe63e5c79e843ca0f19ed474653 Mon Sep 17 00:00:00 2001 From: vbawol Date: Tue, 26 Sep 2017 16:32:57 -0500 Subject: [PATCH] fix error with wrong var --- Sources/epoch_code/compile/functions/EPOCH_fnc_returnHudVar.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/epoch_code/compile/functions/EPOCH_fnc_returnHudVar.sqf b/Sources/epoch_code/compile/functions/EPOCH_fnc_returnHudVar.sqf index 7db75ec1..90c1bba4 100644 --- a/Sources/epoch_code/compile/functions/EPOCH_fnc_returnHudVar.sqf +++ b/Sources/epoch_code/compile/functions/EPOCH_fnc_returnHudVar.sqf @@ -40,7 +40,7 @@ switch (_selVarType) do { _customVarNames = _customVarsInit apply {_x param [0,""]}; _defaultVarValues = _customVarsInit apply {_x param [1,0]}; _customVarLimits = _customVarsInit apply {_x param [2,[]]}; - _varName = format["EPOCH_player%1",_selectedVarName]; + _varName = format["EPOCH_player%1",_selVarName]; if (_selVarName in _customVarNames) then { _varNameTmp = call compile format["_player%1Key",_selVarName]; if !(isNil "_varNameTmp") then {_varName = _varNameTmp};