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:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user