From 937741dc7daca36d308ae60b8da9f0b7afb35193 Mon Sep 17 00:00:00 2001 From: ebayShopper Date: Sun, 17 Jun 2018 11:50:36 -0400 Subject: [PATCH] Update tame_dog.sqf Fixes #2019 --- SQF/dayz_code/actions/dog/tame_dog.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SQF/dayz_code/actions/dog/tame_dog.sqf b/SQF/dayz_code/actions/dog/tame_dog.sqf index c1f32c676..78b47b6b4 100644 --- a/SQF/dayz_code/actions/dog/tame_dog.sqf +++ b/SQF/dayz_code/actions/dog/tame_dog.sqf @@ -31,7 +31,7 @@ if (_hasMeat) then { _textRemoved = getText(configFile >> "CfgMagazines" >> _meat >> "displayName"); // add failure rate based on skill level variable (days alive) - _chanceToFail = (((random 1) + (dayz_Survived/100)) > 0.5); + _chanceToFail = (((random 1) + ((dayz_Survived select 0)/100)) > 0.5); if (!_chanceToFail) then { if (!moveToCompleted _dog) then {