fehler wenn fahrzeug null
This commit is contained in:
@@ -150,6 +150,9 @@ class RageVehicle extends RageEntity implements IVehicle {
|
|||||||
private vehicle: VehicleMp;
|
private vehicle: VehicleMp;
|
||||||
|
|
||||||
constructor(vehicle: VehicleMp) {
|
constructor(vehicle: VehicleMp) {
|
||||||
|
if (!vehicle) {
|
||||||
|
throw "Vehicle is null / undefined"
|
||||||
|
}
|
||||||
super(vehicle);
|
super(vehicle);
|
||||||
this.vehicle = vehicle;
|
this.vehicle = vehicle;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user