From c3d2d0bd4b61dc471ee88af10fbbd5d44665376f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D0=B0=D1=88=D0=B8=D0=BD=20=D0=9C=D0=B0=D0=BA=D1=81?= =?UTF-8?q?=D0=B8=D0=BC?= Date: Thu, 1 Dec 2022 23:53:48 +0400 Subject: [PATCH] Fix object --- .../GasolineTanker/DrawingObjectGasolineTanker.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; }