From 40538c81ad2765d48ce641f1481da6367b70414f Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Mon, 12 Feb 2007 03:10:34 +0000 Subject: [PATCH] This needs to be a TypedArray and then written out with writeObject() not writeField(). Fiddly. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4561 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/as/com/threerings/presents/net/AuthRequest.as | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/as/com/threerings/presents/net/AuthRequest.as b/src/as/com/threerings/presents/net/AuthRequest.as index 3c1171c6c..a9bbf08e3 100644 --- a/src/as/com/threerings/presents/net/AuthRequest.as +++ b/src/as/com/threerings/presents/net/AuthRequest.as @@ -2,6 +2,7 @@ package com.threerings.presents.net { import com.threerings.io.ObjectInputStream; import com.threerings.io.ObjectOutputStream; +import com.threerings.io.TypedArray; import com.threerings.util.StringUtil; @@ -11,7 +12,8 @@ public class AuthRequest extends UpstreamMessage { _creds = creds; _version = version; - _bootGroups = bootGroups; + _bootGroups = new TypedArray("[Ljava.lang.String;"); + _bootGroups.concat(bootGroups); // magic up a timezone in the format "GMT+XX:XX" // Of course, the sign returned from getTimezoneOffset() is wrong @@ -31,12 +33,12 @@ public class AuthRequest extends UpstreamMessage out.writeObject(_creds); out.writeField(_version); out.writeField(_zone); - out.writeField(_bootGroups); + out.writeObject(_bootGroups); } protected var _creds :Credentials; protected var _version :String; protected var _zone :String; - protected var _bootGroups :Array; + protected var _bootGroups :TypedArray; } }