From e1b7b713a2ae73a30a9cc0e7f80d7ad6902a5385 Mon Sep 17 00:00:00 2001 From: NathanSweet Date: Sun, 14 Apr 2013 06:45:27 +0200 Subject: [PATCH] Fixed crash with no newline at start of atlas. --- spine-csharp/src/Atlas.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spine-csharp/src/Atlas.cs b/spine-csharp/src/Atlas.cs index fe9ba308c..4f1137cd5 100644 --- a/spine-csharp/src/Atlas.cs +++ b/spine-csharp/src/Atlas.cs @@ -62,13 +62,12 @@ namespace Spine { float invTexHeight = 1f / textureHeight; String[] tuple = new String[4]; - // Skip to first page entry. + // Skip past first page name. while (true) { String line = reader.ReadLine(); - if (line.Trim().Length == 0) + if (line.Trim().Length != 0) break; } - reader.ReadLine(); // Skip first page name. Format = (Format)Enum.Parse(typeof(Format), readValue(reader), false);