From a67b3a20b54fbbf1e9ac13a2fc0114168a67c808 Mon Sep 17 00:00:00 2001 From: "[VB]AWOL" Date: Wed, 4 Dec 2013 20:54:50 -0600 Subject: [PATCH] updated vehicle upgrade isok --- SQF/dayz_server/compile/server_publishVehicle3.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SQF/dayz_server/compile/server_publishVehicle3.sqf b/SQF/dayz_server/compile/server_publishVehicle3.sqf index 0d6e81d20..ac09d167f 100644 --- a/SQF/dayz_server/compile/server_publishVehicle3.sqf +++ b/SQF/dayz_server/compile/server_publishVehicle3.sqf @@ -9,7 +9,7 @@ _activatingPlayer = _this select 5; _characterID = _keySelected; _isOK = isClass(configFile >> "CfgVehicles" >> _class); -if(!_isOK) exitWith { diag_log ("HIVE-pv3: Vehicle does not exist: "+ str(_class)); }; +if(!_isOK or isNull _object) exitWith { diag_log ("HIVE-pv3: Vehicle does not exist: "+ str(_class)); }; diag_log ("PUBLISH: Attempt " + str(_object)); _dir = _worldspace select 0; @@ -25,7 +25,7 @@ _key call server_hiveWrite; // Switched to spawn so we can wait a bit for the ID [_object,_uid,_characterID,_class,_dir,_location,_donotusekey,_activatingPlayer] spawn { - private ["_object","_uid","_characterID","_done","_retry","_key","_result","_outcome","_oid","_class","_location","_object_para","_donotusekey","_activatingPlayer"]; + private ["_object","_uid","_characterID","_done","_retry","_key","_result","_outcome","_oid","_class","_location","_donotusekey","_activatingPlayer","_countr","_objectID","_objectUID","_dir","_newobject","_weapons","_magazines","_backpacks","_objWpnTypes","_objWpnQty"]; _object = _this select 0; _objectID = _object getVariable ["ObjectID","0"];