From 70b11bc5a1386b2ed95621f426d56764d31fef04 Mon Sep 17 00:00:00 2001 From: vbawol Date: Tue, 3 Oct 2017 08:04:54 -0500 Subject: [PATCH] can just use array as targets instead of foreach here --- .../epoch_server/compile/epoch_bases/EPOCH_swapBuilding.sqf | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Sources/epoch_server/compile/epoch_bases/EPOCH_swapBuilding.sqf b/Sources/epoch_server/compile/epoch_bases/EPOCH_swapBuilding.sqf index ceda28ac..dbcfb0b2 100644 --- a/Sources/epoch_server/compile/epoch_bases/EPOCH_swapBuilding.sqf +++ b/Sources/epoch_server/compile/epoch_bases/EPOCH_swapBuilding.sqf @@ -38,9 +38,7 @@ if (!isNull _object && !(_class isEqualTo "")) then { // force nearby players to reveal new object faster _playersNear = _newObj nearEntities[["Epoch_Male_F", "Epoch_Female_F"], 300]; - { - [_newObj, {player reveal _this}] remoteExec ["call", _x]; - }forEach _playersNear; + [_newObj, {player reveal _this}] remoteExec ["call", _playersNear]; }; };