From 31ed40344f889998fcd68e755a966141cef4e218 Mon Sep 17 00:00:00 2001 From: emkael Date: Wed, 8 Mar 2017 12:51:25 +0100 Subject: * adding Event field if PBN is missing it --- src/PBNFile.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/PBNFile.cs') diff --git a/src/PBNFile.cs b/src/PBNFile.cs index 5526623..b26f84c 100644 --- a/src/PBNFile.cs +++ b/src/PBNFile.cs @@ -40,6 +40,10 @@ namespace BCDD { this.Boards.Add(new PBNBoard(lines)); } + if (!this.Boards[0].HasField("Event")) + { + this.Boards[0].WriteEvent(""); + } } public void WriteBoard(PBNBoard board) -- cgit v1.2.3