Clone fix: pass in our ApplicationDomain.

This is sorta wacked. Grumble. I wish there was a pointer to the class always,
instead of the language letting anonymous functions be a "constructor".
This may not always work if a subclass of OccupantInfo is loaded into a sub-domain.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5227 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2008-07-10 20:46:10 +00:00
parent 8c17cb5b24
commit fe5d4b47ef
@@ -21,6 +21,8 @@
package com.threerings.crowd.data {
import flash.system.ApplicationDomain;
import com.threerings.util.ClassUtil;
import com.threerings.util.Cloneable;
import com.threerings.util.Integer;
@@ -98,7 +100,8 @@ public class OccupantInfo extends SimpleStreamableObject
*/
public function clone () :Object
{
var that :OccupantInfo = ClassUtil.newInstance(this) as OccupantInfo;
var that :OccupantInfo =
ClassUtil.newInstance(this, ApplicationDomain.currentDomain) as OccupantInfo;
that.bodyOid = this.bodyOid;
that.username = this.username;
that.status = this.status;