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 PabstMirror
parent e082597e3c
commit d75eeac1e4

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