From 448dd9476bbcd65733bf9f045e3a3dcffc25a3ad Mon Sep 17 00:00:00 2001 From: vbawol Date: Tue, 19 Apr 2016 11:00:09 -0500 Subject: [PATCH] fixed mission payout http://epochmod.com/forum/index.php?/topic/41892-payout-trader-mission-broken/ --- .../compile/epoch_missions/EPOCH_Server_fillContainer.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/epoch_server/compile/epoch_missions/EPOCH_Server_fillContainer.sqf b/Sources/epoch_server/compile/epoch_missions/EPOCH_Server_fillContainer.sqf index e68f66cd..5c48c9b4 100644 --- a/Sources/epoch_server/compile/epoch_missions/EPOCH_Server_fillContainer.sqf +++ b/Sources/epoch_server/compile/epoch_missions/EPOCH_Server_fillContainer.sqf @@ -4,7 +4,6 @@ Contributors: Description: - Server side spawing of shipwreck loots Licence: Arma Public License Share Alike (APL-SA) - https://www.bistudio.com/community/licenses/arma-public-license-share-alike @@ -13,7 +12,8 @@ https://github.com/EpochModTeam/Epoch/tree/master/Sources/epoch_server/compile/epoch_missions/EPOCH_Server_fillContainer.sqf */ private["_player","_container","_clearFirst","_pos","_chance","_weps","_mags","_items"]; -params ["_player",["_token","",[""]],["_container",objNull,[objNull]],["_clearFirst",false],["_chance",25],["_pos",getPosATL _player]]; +params ["_player",["_token","",[""]],["_container",objNull,[objNull]],["_clearFirst",false],["_chance",25]]; +_pos = getPosATL _player; if !([_player,_token]call EPOCH_server_getPToken)exitWith{};