Medical - Prevent running FUNC(deserializeState) in scheduled environment (#9662)

Run deserializeState in unscheduled
This commit is contained in:
Grim 2023-12-11 19:03:36 -03:00 committed by GitHub
parent 1b86f909e8
commit 892671c770
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,6 +17,11 @@
*/
params [["_unit", objNull, [objNull]], ["_json", "{}", [""]]];
// Don't run in scheduled environment
if (canSuspend) exitWith {
[FUNC(deserializeState), _this] call CBA_fnc_directCall
};
if (isNull _unit) exitWith {};
if (!local _unit) exitWith { ERROR_1("unit [%1] is not local",_unit) };