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:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user