fix usage of reserved variable "" in FUNC(getDetectorConfig), fix #4741 (#4742)

This commit is contained in:
commy2 2016-12-02 17:09:48 +01:00 committed by Glowbal
parent 11b464b585
commit 757ab78191

View File

@ -18,6 +18,8 @@
params ["_detectorType"];
if (_detectorType isEqualTo "") exitWith {[]};
private _detectorConfig = GVAR(detectorConfigs) getVariable _detectorType;
if (isNil "_detectorConfig") then {
private _cfgEntry = (configFile >> "ACE_detector" >> "detectors" >> _detectorType);