This commit is contained in:
zum 2024-04-15 12:38:53 +04:00
parent 55c68c2d70
commit 34bc9b98b9
2 changed files with 3 additions and 7 deletions

View File

@ -139,11 +139,7 @@ public class StorageCollection<T>
using FileStream fs = new(filename, FileMode.Create); using FileStream fs = new(filename, FileMode.Create);
using StreamWriter streamWriter = new StreamWriter(fs); using StreamWriter streamWriter = new StreamWriter(fs);
string info = sb.ToString(); streamWriter.Write(sb.ToString());
for (int i = 0; i < info.Length; i++)
{
streamWriter.Write(info[i]);
}
return true; return true;
} }

View File

@ -40,9 +40,9 @@ public static class ExtentionDrawningWarPlane
/// </summary> /// </summary>
/// <param name="drawningCar">Сохраняемый объект</param> /// <param name="drawningCar">Сохраняемый объект</param>
/// <returns>Строка с данными по объекту</returns> /// <returns>Строка с данными по объекту</returns>
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) if (array == null)
{ {