From 5378b1ad76071974ed8db968e03a2e0ee421eb2c Mon Sep 17 00:00:00 2001 From: oiad Date: Sun, 3 Sep 2017 19:18:55 +1200 Subject: [PATCH] Fix random count --- SQF/dayz_code/actions/remove.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SQF/dayz_code/actions/remove.sqf b/SQF/dayz_code/actions/remove.sqf index 42277063d..15d57cf05 100644 --- a/SQF/dayz_code/actions/remove.sqf +++ b/SQF/dayz_code/actions/remove.sqf @@ -241,7 +241,7 @@ if (_proceed && _success) then { _itemOut = _x select 0; _countOut = _x select 1; if (typeName _countOut == "ARRAY") then { - _countOut = round((random (_countOut select 1)) + (_countOut select 0)); + _countOut = round((random (_countOut select 1)) max (_countOut select 0)); }; if (count _x > 2) then { switch (_x select 2) do {