More generically clone ourselves.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4178 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -21,6 +21,7 @@
|
|||||||
|
|
||||||
package com.threerings.whirled.spot.data {
|
package com.threerings.whirled.spot.data {
|
||||||
|
|
||||||
|
import com.threerings.util.ClassUtil;
|
||||||
import com.threerings.util.Cloneable;
|
import com.threerings.util.Cloneable;
|
||||||
|
|
||||||
import com.threerings.io.Streamable;
|
import com.threerings.io.Streamable;
|
||||||
@@ -109,7 +110,8 @@ public class Portal
|
|||||||
// documentation inherited from interface Cloneable
|
// documentation inherited from interface Cloneable
|
||||||
public function clone () :Object
|
public function clone () :Object
|
||||||
{
|
{
|
||||||
var p :Portal = new Portal();
|
var clazz :Class = ClassUtil.getClass(this);
|
||||||
|
var p :Portal = new clazz();
|
||||||
p.portalId = portalId;
|
p.portalId = portalId;
|
||||||
p.loc = loc;
|
p.loc = loc;
|
||||||
p.targetSceneId = targetSceneId;
|
p.targetSceneId = targetSceneId;
|
||||||
|
|||||||
Reference in New Issue
Block a user