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{};