From 8abacf6b0c3f69a31c71080b2e834528165173e9 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Thu, 21 Mar 2002 01:58:10 +0000 Subject: [PATCH] Added zero argument constructor (for unserialization); fixed a bug in serialization code. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1146 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../com/threerings/presents/dobj/CompoundEvent.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/java/com/threerings/presents/dobj/CompoundEvent.java b/src/java/com/threerings/presents/dobj/CompoundEvent.java index c09a39f44..1fc9fe7b8 100644 --- a/src/java/com/threerings/presents/dobj/CompoundEvent.java +++ b/src/java/com/threerings/presents/dobj/CompoundEvent.java @@ -1,5 +1,5 @@ // -// $Id: CompoundEvent.java,v 1.3 2002/03/20 03:29:21 mdb Exp $ +// $Id: CompoundEvent.java,v 1.4 2002/03/21 01:58:10 mdb Exp $ package com.threerings.presents.dobj; @@ -23,6 +23,14 @@ public class CompoundEvent extends TypedEvent /** The typed object code for this event. */ public static final short TYPE = TYPE_BASE + 50; + /** + * Constructs a blank compound event in preparation for + * unserialization. + */ + public CompoundEvent () + { + } + /** * Constructs a compound event and prepares it for operation. */ @@ -127,6 +135,7 @@ public class CompoundEvent extends TypedEvent { super.writeTo(out); int ecount = _events.size(); + out.writeInt(ecount); for (int i = 0; i < ecount; i++) { TypedEvent event = (TypedEvent)_events.get(i); TypedObjectFactory.writeTo(out, event);