Let's make StageLocation's clone() actually clone it.

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@961 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Mike Thomas
2010-08-27 20:49:43 +00:00
parent 32a348fa2c
commit 338309d543
@@ -66,7 +66,11 @@ public class StageLocation extends SimpleStreamableObject
public function clone () :Object
{
return (ClassUtil.newInstance(this) as StageLocation);
var newLoc :StageLocation = (ClassUtil.newInstance(this) as StageLocation);
newLoc.x = x;
newLoc.y = y;
newLoc.orient = orient;
return newLoc;
}
/**