Skip to content

Commit

Permalink
Merge pull request #1594 from Vdauphin/FIX-chem_propagate_string_object
Browse files Browse the repository at this point in the history
FIX: Don't propagate chem on object declare has string
  • Loading branch information
Vdauphin authored Apr 1, 2024
2 parents b129b93 + 822af3b commit a73ea8f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ Author:
---------------------------------------------------------------------------- */

params [
["_item", objNull, [objNull]],
["_item", objNull, [objNull, ""]],
["_vehicle", objNull, [objNull]]
];

if (_item isEqualType "") exitWith {_this};

if (_item in btc_chem_contaminated) then {
if ((btc_chem_contaminated pushBackUnique _vehicle) > -1) then {
publicVariable "btc_chem_contaminated";
Expand Down

0 comments on commit a73ea8f

Please sign in to comment.