mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Fix ServerMagArray count error
(select 2) selects 3rd element
From 252843d @icomrade
This commit is contained in:
@@ -232,8 +232,8 @@ _clientID publicVariableClient "PVCDZ_plr_plantSpawner";
|
||||
_playerObj setVariable ["lastTime",time];
|
||||
|
||||
//set server-side inventory variable to monitor player gear
|
||||
if ((count _inventory) > 1) then {
|
||||
_playerObj setVariable["ServerMagArray",[_inventory select 1, _inventory select 2], false];
|
||||
if (count _inventory > 2) then {
|
||||
_playerObj setVariable["ServerMagArray",[_inventory select 1,_inventory select 2], false];
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user