Checkpoint.

Never in my life have I spent so much time debugging so little.
I think the flash player is full of bugs, I've learned to just run
everything two or three times and chase the error that happens the most. Fun!


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3929 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2006-03-09 02:55:07 +00:00
parent 15cf89770f
commit 04255b383b
15 changed files with 101 additions and 41 deletions
+5 -3
View File
@@ -11,6 +11,7 @@ import com.threerings.util.Equalable;
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.io.Streamable;
import com.threerings.io.TypedArray;
import com.threerings.presents.Log;
@@ -241,7 +242,7 @@ public class DSet
return (key as Equalable).equals(otherKey);
} else {
throw new Error("Element key is neither simple or Equalabe");
throw new Error("Element key is neither simple or Equalable");
}
}
@@ -266,11 +267,12 @@ public class DSet
// documentation inherited from interface Streamable
public function readObject (ins :ObjectInputStream) :void
{
_entries = (ins.readObject() as Array);
_entries = (ins.readObject() as TypedArray);
_entries.length = ins.readInt(); // then read the length and limit it
}
/** The entries of the set (in a sparse array). */
protected var _entries :Array;
protected var _entries :TypedArray =
new TypedArray("[Lcom.threerings.presents.dobj.DSet$Entry;");
}
}