Add default val for vehicle assoc in veh class

This commit is contained in:
Vortrex
2020-12-12 06:13:32 -06:00
parent 08975a78b3
commit 22ebcbcc7d

View File

@@ -183,11 +183,11 @@ function initClassTable() {
},
vehicleData: class {
constructor(vehicleAssoc, vehicle = false) {
constructor(vehicleAssoc = false, vehicle = false) {
// General Info
this.databaseId = 0;
this.server = serverId;
this.model = (vehicle) ? vehicle.modelIndex : 0;
this.model = (vehicle != false) ? vehicle.modelIndex : 0;
this.vehicle = vehicle;
this.tempVehicle = false;
this.streamedBy = false; // For IV only