some fix
This commit is contained in:
parent
55c68c2d70
commit
34bc9b98b9
@ -139,11 +139,7 @@ public class StorageCollection<T>
|
||||
|
||||
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;
|
||||
}
|
||||
|
@ -40,9 +40,9 @@ public static class ExtentionDrawningWarPlane
|
||||
/// </summary>
|
||||
/// <param name="drawningCar">Сохраняемый объект</param>
|
||||
/// <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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user