From ccb530d8c762d7a5a099bc182fbffd71228171d5 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Wed, 15 Nov 2006 20:47:57 +0000 Subject: [PATCH] Cookie fixes. git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@124 c613c5cb-e716-0410-b11b-feb51c14d237 --- src/as/com/threerings/ezgame/client/GameObjectImpl.as | 5 +---- src/as/com/threerings/ezgame/data/UserCookie.as | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/as/com/threerings/ezgame/client/GameObjectImpl.as b/src/as/com/threerings/ezgame/client/GameObjectImpl.as index f9707edd..b00651bf 100644 --- a/src/as/com/threerings/ezgame/client/GameObjectImpl.as +++ b/src/as/com/threerings/ezgame/client/GameObjectImpl.as @@ -305,10 +305,7 @@ public class GameObjectImpl extends EventDispatcher return false; } - _ezObj.ezGameService.setCookie(_ctx.getClient(), null, // ba, - // TODO - /// - /// TODO + _ezObj.ezGameService.setCookie(_ctx.getClient(), ba, createLoggingListener("setUserCookie")); return true; } diff --git a/src/as/com/threerings/ezgame/data/UserCookie.as b/src/as/com/threerings/ezgame/data/UserCookie.as index a7a7a574..cff8755b 100644 --- a/src/as/com/threerings/ezgame/data/UserCookie.as +++ b/src/as/com/threerings/ezgame/data/UserCookie.as @@ -31,7 +31,7 @@ public class UserCookie public function readObject (ins :ObjectInputStream) :void { playerIndex = ins.readInt(); - var ba :ByteArray = (ins.readObject() as ByteArray); + var ba :ByteArray = (ins.readField(ByteArray) as ByteArray); cookie = EZObjectMarshaller.decode(ba); }