Explorar o código

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

badlogic %!s(int64=5) %!d(string=hai) anos
pai
achega
bcfff2d3c8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {