ソースを参照

[csharp] Capacity for region fields was low.

Nathan Sweet 4 年 前
コミット
3ee27a6b3c
1 ファイル変更1 行追加1 行削除
  1. 1 1
      spine-csharp/src/Atlas.cs

+ 1 - 1
spine-csharp/src/Atlas.cs

@@ -134,7 +134,7 @@ namespace Spine {
 				page.pma = entry[1] == "true";
 				page.pma = entry[1] == "true";
 			});
 			});
 
 
-			var regionFields = new Dictionary<string, Action>(4);
+			var regionFields = new Dictionary<string, Action>(8);
 			regionFields.Add("xy", () => { // Deprecated, use bounds.
 			regionFields.Add("xy", () => { // Deprecated, use bounds.
 				region.x = int.Parse(entry[1], CultureInfo.InvariantCulture);
 				region.x = int.Parse(entry[1], CultureInfo.InvariantCulture);
 				region.y = int.Parse(entry[2], CultureInfo.InvariantCulture);
 				region.y = int.Parse(entry[2], CultureInfo.InvariantCulture);