From e2cbfb920bf60ac879eb66ebb75d6f751d66b7dd Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Mon, 10 Oct 2011 17:47:57 +1300 Subject: [PATCH] tidy in TileSet --- OpenRA.FileFormats/Map/TileSet.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OpenRA.FileFormats/Map/TileSet.cs b/OpenRA.FileFormats/Map/TileSet.cs index d76bf96c38..57e05f8293 100644 --- a/OpenRA.FileFormats/Map/TileSet.cs +++ b/OpenRA.FileFormats/Map/TileSet.cs @@ -50,10 +50,12 @@ namespace OpenRA.FileFormats t => t.Value.Value ); } + static readonly string[] Fields = { "Id", "Image", "Size", "PickAny" }; + public MiniYaml Save() { var root = new List(); - foreach (var field in new string[] {"Id", "Image", "Size", "PickAny"}) + foreach (var field in Fields) { FieldInfo f = this.GetType().GetField(field); if (f.GetValue(this) == null) continue;