Fix ServerMagArray count error

(select 2) selects 3rd element

From 252843d @icomrade
This commit is contained in:
ebaydayz
2016-12-05 15:45:42 -05:00
parent 1bb76d2d22
commit c3af66b23a

View File

@@ -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];
};