From 338309d543b0790bec0989749d3837da47f87bb1 Mon Sep 17 00:00:00 2001 From: Mike Thomas Date: Fri, 27 Aug 2010 20:49:43 +0000 Subject: [PATCH] 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 --- src/as/com/threerings/stage/data/StageLocation.as | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/as/com/threerings/stage/data/StageLocation.as b/src/as/com/threerings/stage/data/StageLocation.as index a479fb01..2d04a48b 100644 --- a/src/as/com/threerings/stage/data/StageLocation.as +++ b/src/as/com/threerings/stage/data/StageLocation.as @@ -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; } /**