Change "readObject() as Type" to "Type(readObject())" for vilya for better error checking and faster failure

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@758 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Jamie Doornbos
2008-10-13 17:42:58 +00:00
parent 9cf566de38
commit d2557dfb7f
15 changed files with 23 additions and 23 deletions
@@ -66,8 +66,8 @@ public class SceneSummary
{
sceneId = ins.readInt();
name = (ins.readField(String) as String);
neighbors = (ins.readObject() as TypedArray);
neighborDirs = (ins.readObject() as TypedArray);
neighbors = TypedArray(ins.readObject());
neighborDirs = TypedArray(ins.readObject());
}
// from interface Streamable
@@ -62,8 +62,8 @@ public class ZoneSummary extends SimpleStreamableObject
{
super.readObject(ins);
zoneId = ins.readInt();
name = (ins.readObject() as Name);
scenes = (ins.readObject() as TypedArray);
name = Name(ins.readObject());
scenes = TypedArray(ins.readObject());
}
// from interface Streamable