mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge pull request #1003 from acemod/fixMedicalLitterError
Fix treatment script error
This commit is contained in:
commit
f6e815fbaf
@ -68,6 +68,7 @@ _createdLitter = [];
|
|||||||
_litterCondition = if (_litterCondition != "") then {compile _litterCondition} else {{true}};
|
_litterCondition = if (_litterCondition != "") then {compile _litterCondition} else {{true}};
|
||||||
} else {
|
} else {
|
||||||
_litterCondition = missionNamespace getvariable _litterCondition;
|
_litterCondition = missionNamespace getvariable _litterCondition;
|
||||||
|
if (typeName _litterCondition != "CODE") then {_litterCondition = {false}};
|
||||||
};
|
};
|
||||||
if !([_caller, _target, _selectionName, _className, _usersOfItems] call _litterCondition) exitwith {};
|
if !([_caller, _target, _selectionName, _className, _usersOfItems] call _litterCondition) exitwith {};
|
||||||
|
|
||||||
|
@ -58,6 +58,6 @@ if (isNil _callback) then {
|
|||||||
_callback = missionNamespace getvariable _callback;
|
_callback = missionNamespace getvariable _callback;
|
||||||
};
|
};
|
||||||
|
|
||||||
_args call FUNC(createLitter);
|
|
||||||
|
|
||||||
_args call _callback;
|
_args call _callback;
|
||||||
|
|
||||||
|
_args call FUNC(createLitter);
|
||||||
|
@ -52,6 +52,6 @@ if (isNil _callback) then {
|
|||||||
_callback = missionNamespace getvariable _callback;
|
_callback = missionNamespace getvariable _callback;
|
||||||
};
|
};
|
||||||
|
|
||||||
_args call FUNC(createLitter);
|
|
||||||
|
|
||||||
_args call _callback;
|
_args call _callback;
|
||||||
|
|
||||||
|
_args call FUNC(createLitter);
|
||||||
|
Loading…
Reference in New Issue
Block a user