From 40ea519fd326e1242f2f2c49b060b0585a8bb70a Mon Sep 17 00:00:00 2001 From: ebaydayz Date: Thu, 1 Dec 2016 15:31:09 -0500 Subject: [PATCH] Temp fix for vault_pitch.sqf error in 1.0.6 release --- SQF/dayz_code/actions/player_build.sqf | 4 ++-- SQF/dayz_server/compile/server_publishObject.sqf | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/SQF/dayz_code/actions/player_build.sqf b/SQF/dayz_code/actions/player_build.sqf index 59bef7c9e..b649f945c 100644 --- a/SQF/dayz_code/actions/player_build.sqf +++ b/SQF/dayz_code/actions/player_build.sqf @@ -434,7 +434,7 @@ if (_canBuild select 0) then { _tmpbuilt setVariable ["CharacterID",_combination,true]; if (DZE_permanentPlot) then { _tmpbuilt setVariable ["ownerPUID",dayz_playerUID,true]; - PVDZ_obj_Publish = [_combination,_tmpbuilt,[_dir,_location,dayz_playerUID],_classname]; + PVDZ_obj_Publish = [_combination,_tmpbuilt,[_dir,_location,dayz_playerUID],[]]; if (_lockable == 3) then { _friendsArr = [[dayz_playerUID,toArray (name player)]]; _tmpbuilt setVariable ["doorfriends", _friendsArr, true]; @@ -461,7 +461,7 @@ if (_canBuild select 0) then { _tmpbuilt setVariable ["plotfriends", _friendsArr, true]; PVDZ_obj_Publish = [dayz_characterID,_tmpbuilt,[_dir,_location,dayz_playerUID],_friendsArr]; } else { - PVDZ_obj_Publish = [dayz_characterID,_tmpbuilt,[_dir,_location,dayz_playerUID],_classname]; + PVDZ_obj_Publish = [dayz_characterID,_tmpbuilt,[_dir,_location,dayz_playerUID],[]]; }; } else { PVDZ_obj_Publish = [dayz_characterID,_tmpbuilt,[_dir,_location],[]]; diff --git a/SQF/dayz_server/compile/server_publishObject.sqf b/SQF/dayz_server/compile/server_publishObject.sqf index 80e899a18..309c41691 100644 --- a/SQF/dayz_server/compile/server_publishObject.sqf +++ b/SQF/dayz_server/compile/server_publishObject.sqf @@ -6,6 +6,7 @@ _characterID = _this select 0; _object = _this select 1; _worldspace = _this select 2; _inventory = _this select 3; +if (typeName _inventory != "ARRAY") then {_inventory = [];}; //Temp fix for error in vault_pitch, player_build.sqf in 1.0.6 release _type = typeOf _object; if ([_object, "Server"] call check_publishobject) then {