mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-09 16:48:43 +08:00
Fixed crash with no newline at start of atlas.
This commit is contained in:
parent
087b0cd874
commit
e1b7b713a2
@ -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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user