Fix empty callback for hr adjustment

Fix #3526
Same issue as #3384
This commit is contained in:
PabstMirror 2016-03-03 13:23:53 -06:00
parent fc54b1180c
commit e3deebff7e

View File

@ -64,6 +64,7 @@ if (isNil _hrCallback) then {
} else {
_hrCallback = missionNamespace getVariable _hrCallback;
};
if (!(_hrCallback isEqualType {})) then {_hrCallback = {TRACE_1("callback was NOT code",_hrCallback)};};
// Adjust the heart rate based upon config entry
_heartRate = _target getVariable [QGVAR(heartRate), 70];