As far as I can figure, ArrayMask objects are used even when

the Array length is 0, so let's make sure we don't cause any
streaming errors here.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5966 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2009-09-24 19:35:35 +00:00
parent a6a008cb50
commit 730d448e40
+5 -2
View File
@@ -60,8 +60,11 @@ public class ArrayMask
// documentation inherited from interface Streamable
public function readFrom (ins :ObjectInputStream) :void
{
_mask.length = ins.readShort();
ins.readBytes(_mask, 0, _mask.length);
var len :int = ins.readShort();
_mask.length = len;
if (len > 0) {
ins.readBytes(_mask, 0, len);
}
}
/** The array mask. */