From 34bc9b98b9bbcafbf4543439eefde21911c5270e Mon Sep 17 00:00:00 2001 From: zum Date: Mon, 15 Apr 2024 12:38:53 +0400 Subject: [PATCH] some fix --- .../CollectionGenericObjects/StorageCollection.cs | 6 +----- .../Drawnings/ExtentionDrawningWarPlane.cs | 4 ++-- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/ProjectStormTrooper/ProjectStormTrooper/CollectionGenericObjects/StorageCollection.cs b/ProjectStormTrooper/ProjectStormTrooper/CollectionGenericObjects/StorageCollection.cs index 2b8d442..c17bf44 100644 --- a/ProjectStormTrooper/ProjectStormTrooper/CollectionGenericObjects/StorageCollection.cs +++ b/ProjectStormTrooper/ProjectStormTrooper/CollectionGenericObjects/StorageCollection.cs @@ -139,11 +139,7 @@ public class StorageCollection using FileStream fs = new(filename, FileMode.Create); using StreamWriter streamWriter = new StreamWriter(fs); - string info = sb.ToString(); - for (int i = 0; i < info.Length; i++) - { - streamWriter.Write(info[i]); - } + streamWriter.Write(sb.ToString()); return true; } diff --git a/ProjectStormTrooper/ProjectStormTrooper/Drawnings/ExtentionDrawningWarPlane.cs b/ProjectStormTrooper/ProjectStormTrooper/Drawnings/ExtentionDrawningWarPlane.cs index 25f36b5..784a887 100644 --- a/ProjectStormTrooper/ProjectStormTrooper/Drawnings/ExtentionDrawningWarPlane.cs +++ b/ProjectStormTrooper/ProjectStormTrooper/Drawnings/ExtentionDrawningWarPlane.cs @@ -40,9 +40,9 @@ public static class ExtentionDrawningWarPlane /// /// Сохраняемый объект /// Строка с данными по объекту - public static string GetDataForSave(this DrawningWarPlane drawningCar) + public static string GetDataForSave(this DrawningWarPlane drawningWarPlane) { - string[]? array = drawningCar?.EntityWarPlane?.GetStringRepresentation(); + string[]? array = drawningWarPlane?.EntityWarPlane?.GetStringRepresentation(); if (array == null) {