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:
Ray Greenwell
2006-12-06 02:49:41 +00:00
parent e15d6d31d1
commit d9894b6c78
@@ -52,8 +52,14 @@ public class StreamableArrayList extends ArrayCollection
public function readObject (ins :ObjectInputStream) :void
{
var ecount :int = ins.readInt();
for (var ii :int = 0; ii < ecount; ii++) {
source[ii] = ins.readObject();
disableAutoUpdate();
removeAll();
try {
for (var ii :int = 0; ii < ecount; ii++) {
addItem(ins.readObject());
}
} finally {
enableAutoUpdate();
}
}
}