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:
Ray Greenwell
2006-06-07 18:48:47 +00:00
parent 6c6061c62a
commit e541cf3db3
@@ -21,6 +21,7 @@
package com.threerings.whirled.spot.data {
import com.threerings.util.ClassUtil;
import com.threerings.util.Cloneable;
import com.threerings.io.Streamable;
@@ -109,7 +110,8 @@ public class Portal
// documentation inherited from interface Cloneable
public function clone () :Object
{
var p :Portal = new Portal();
var clazz :Class = ClassUtil.getClass(this);
var p :Portal = new clazz();
p.portalId = portalId;
p.loc = loc;
p.targetSceneId = targetSceneId;