From 17dc26fe52e0ede26950071508efa3f5cdb58c82 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Sat, 2 Apr 2011 04:04:00 +0000 Subject: [PATCH] More hackery preservation. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6587 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../threerings/presents/dobj/AttributeChangedEvent.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/com/threerings/presents/dobj/AttributeChangedEvent.java b/src/main/java/com/threerings/presents/dobj/AttributeChangedEvent.java index c34c6fcc5..fe096ea53 100644 --- a/src/main/java/com/threerings/presents/dobj/AttributeChangedEvent.java +++ b/src/main/java/com/threerings/presents/dobj/AttributeChangedEvent.java @@ -157,6 +157,14 @@ public class AttributeChangedEvent extends NamedEvent _oldValue = oldValue; } + /** For unserialization. */ + protected AttributeChangedEvent () + { + super(0, null); + // we can't allow our primary ctor to be called during unserialization, or it will wipe out + // the hackery we do with _oldValue + } + @Override protected void notifyListener (Object listener) {