Fixed some bugs with reading data back from the server, including
subtracting 4 from the length of the frame and fixing the reading of fields for which we have a basic streamer. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3885 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -84,7 +84,7 @@ public class ObjectInputStream
|
||||
readBareObjectImpl(obj, Streamer.getStreamer(obj));
|
||||
}
|
||||
|
||||
protected function readBareObjectImpl (obj :Object, streamer :Streamer) :void
|
||||
internal function readBareObjectImpl (obj :Object, streamer :Streamer) :void
|
||||
{
|
||||
// streamable objects
|
||||
if (streamer == null) {
|
||||
@@ -110,8 +110,10 @@ public class ObjectInputStream
|
||||
//throws IOError
|
||||
{
|
||||
if (readBoolean()) {
|
||||
var obj :Object = new clazz();
|
||||
return readBareObject(obj);
|
||||
var streamer :Streamer = Streamer.getStreamerByClass(clazz);
|
||||
var obj :Object = streamer.createObject(this);
|
||||
streamer.readObject(obj, this);
|
||||
return obj;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user