From 793ef39de79cf6550e23f0b9553248c2e152b35a Mon Sep 17 00:00:00 2001 From: Skaronator Date: Sat, 1 Mar 2014 19:03:41 +0100 Subject: [PATCH] Can be a local function --- SQF/dayz_code/compile/building_spawnLoot.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SQF/dayz_code/compile/building_spawnLoot.sqf b/SQF/dayz_code/compile/building_spawnLoot.sqf index e33571eb6..4821f1255 100644 --- a/SQF/dayz_code/compile/building_spawnLoot.sqf +++ b/SQF/dayz_code/compile/building_spawnLoot.sqf @@ -18,7 +18,7 @@ _lootSpawnBias = 67; //67 between 50 and 100. The lower it is, the lower chance // shuffles an array // parameters: array // example: _myrandomarray = _myNormalArray call _ShuffleArray; -ShuffleArray = { +_ShuffleArray = { private ["_ar","_rand_array","_rand"]; _ar = _this; _rand_array = []; @@ -31,7 +31,7 @@ ShuffleArray = { }; _rand_array; }; -_positions = _pos call ShuffleArray; +_positions = _pos call _ShuffleArray; // bias for this building. The lower it is, the lower chance some of the lootpiles will spawn