diff --git a/GasolineTanker/GasolineTanker/DrawingObjectGasolineTanker.cs b/GasolineTanker/GasolineTanker/DrawingObjectGasolineTanker.cs index 32be3ce..7d5dfb5 100644 --- a/GasolineTanker/GasolineTanker/DrawingObjectGasolineTanker.cs +++ b/GasolineTanker/GasolineTanker/DrawingObjectGasolineTanker.cs @@ -57,10 +57,10 @@ namespace GasolineTanker return false; } if (entity is EntityImprovedGasolineTanker entityImprovedGasolineTanker && - otherEntity is EntityImprovedGasolineTanker otherEntityWarmlyShip && ( - entityImprovedGasolineTanker.BodyColor != otherEntityWarmlyShip.BodyColor || - entityImprovedGasolineTanker.DopColor != otherEntityWarmlyShip.DopColor || - entityImprovedGasolineTanker.BodyKit != otherEntityWarmlyShip.BodyKit)) + otherEntity is EntityImprovedGasolineTanker otherEntityWarmlyGasolineTanker && ( + entityImprovedGasolineTanker.BodyColor != otherEntityWarmlyGasolineTanker.BodyColor || + entityImprovedGasolineTanker.DopColor != otherEntityWarmlyGasolineTanker.DopColor || + entityImprovedGasolineTanker.BodyKit != otherEntityWarmlyGasolineTanker.BodyKit)) { return false; }