Merge pull request #3527 from acemod/fixHrCallbackVar

Fix empty callback for hr adjustment
This commit is contained in:
Thomas Kooi 2016-03-07 12:51:23 +01:00
commit 8946779c1a

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