瀏覽代碼

[as3] Fixed error message when passing the wrong object to Atlas constructor. Closes #1684.

badlogic 5 年之前
父節點
當前提交
bcfff2d3c8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      spine-as3/spine-as3/src/spine/atlas/Atlas.as

+ 1 - 1
spine-as3/spine-as3/src/spine/atlas/Atlas.as

@@ -45,7 +45,7 @@ package spine.atlas {
 			else if (object is ByteArray)
 				load(ByteArray(object).readUTFBytes(ByteArray(object).length), textureLoader);
 			else
-				throw new ArgumentError("object must be a TextureAtlas or AttachmentLoader.");
+				throw new ArgumentError("object must be a string or ByteArray containing .atlas data.");
 		}
 
 		protected function load(atlasText : String, textureLoader : TextureLoader) : void {