Fixed generic error in expression on safe code fix.

This commit is contained in:
vbawol
2013-06-03 12:36:19 -05:00
parent 50b7fa10ab
commit afedd19b68

View File

@@ -97,10 +97,6 @@ serverVehicleCounter = [];
// fix for leading zero issues on safe codes after restart
if (_object isKindOf "VaultStorageLocked") then {
if(_ownerID == 0) then {
_ownerID = "0000";
} else {
_codeCount = (count (toArray _ownerID));
if(_codeCount == 3) then {
_ownerID = format["0%1", _ownerID];
@@ -112,7 +108,6 @@ serverVehicleCounter = [];
_ownerID = format["000%1", _ownerID];
};
};
};
_object setVariable ["CharacterID", _ownerID, true];