From fe5d4b47efd8b2b4c2efbf7f9d4b7a3b6327959a Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Thu, 10 Jul 2008 20:46:10 +0000 Subject: [PATCH] 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 --- src/as/com/threerings/crowd/data/OccupantInfo.as | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/as/com/threerings/crowd/data/OccupantInfo.as b/src/as/com/threerings/crowd/data/OccupantInfo.as index d0ce151a2..338d37554 100644 --- a/src/as/com/threerings/crowd/data/OccupantInfo.as +++ b/src/as/com/threerings/crowd/data/OccupantInfo.as @@ -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;