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 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;
|
||||||
}
|
}
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user