From b777ea482770a2866cba061ca077d79e6e6fefbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BD=D0=B8=D0=BB=D0=B0?= Date: Sun, 4 Dec 2022 14:34:23 +0400 Subject: [PATCH] / --- Locomative/Locomative/MapWithSetLocoGeneric.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Locomative/Locomative/MapWithSetLocoGeneric.cs b/Locomative/Locomative/MapWithSetLocoGeneric.cs index d3b2b7a..f0757a8 100644 --- a/Locomative/Locomative/MapWithSetLocoGeneric.cs +++ b/Locomative/Locomative/MapWithSetLocoGeneric.cs @@ -105,20 +105,20 @@ namespace Locomative int x = 10; int y = _pictureHeight - _placeSizeHeight; int k = 0; - foreach (var plain in _setLoco.GetLoco()) + foreach (var loco in _setLoco.GetLoco()) { if ((k + 1) % CountWidth != 0 || k == 0) { - plain?.SetObject(x, y, _pictureWidth, _pictureHeight); - plain?.DrawningObject(g); + loco?.SetObject(x, y, _pictureWidth, _pictureHeight); + loco?.DrawningObject(g); x += _placeSizeWidth; } else { - plain?.SetObject(x, y, _pictureWidth, _pictureHeight); - plain?.DrawningObject(g); + loco?.SetObject(x, y, _pictureWidth, _pictureHeight); + loco?.DrawningObject(g); x = 10; y -= _placeSizeHeight;