I don't think jamming things into 'source' is kosher, so do it the right
way. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4468 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -52,8 +52,14 @@ public class StreamableArrayList extends ArrayCollection
|
|||||||
public function readObject (ins :ObjectInputStream) :void
|
public function readObject (ins :ObjectInputStream) :void
|
||||||
{
|
{
|
||||||
var ecount :int = ins.readInt();
|
var ecount :int = ins.readInt();
|
||||||
for (var ii :int = 0; ii < ecount; ii++) {
|
disableAutoUpdate();
|
||||||
source[ii] = ins.readObject();
|
removeAll();
|
||||||
|
try {
|
||||||
|
for (var ii :int = 0; ii < ecount; ii++) {
|
||||||
|
addItem(ins.readObject());
|
||||||
|
}
|
||||||
|
} finally {
|
||||||
|
enableAutoUpdate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user