summaryrefslogtreecommitdiff
path: root/src/PBNFile.cs
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-03-08 12:51:25 +0100
committeremkael <emkael@tlen.pl>2017-03-08 12:51:25 +0100
commit31ed40344f889998fcd68e755a966141cef4e218 (patch)
tree9fa8151c842ccbedab6539a00f16fb40a1037db9 /src/PBNFile.cs
parentac1a86665497799cbcf4747907772973e9707355 (diff)
* adding Event field if PBN is missing it
Diffstat (limited to 'src/PBNFile.cs')
-rw-r--r--src/PBNFile.cs4
1 files changed, 4 insertions, 0 deletions
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)