From add74fd863d99376a7e3110ad88e012e04ebb663 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Tue, 20 Mar 2007 23:24:41 +0000 Subject: [PATCH] Alas this hack will be needed for all time it seems. git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@253 c613c5cb-e716-0410-b11b-feb51c14d237 --- src/java/com/threerings/stats/data/MaxIntStat.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/java/com/threerings/stats/data/MaxIntStat.java b/src/java/com/threerings/stats/data/MaxIntStat.java index db6c0285..1be2e591 100644 --- a/src/java/com/threerings/stats/data/MaxIntStat.java +++ b/src/java/com/threerings/stats/data/MaxIntStat.java @@ -53,7 +53,11 @@ public class MaxIntStat extends IntStat throws IOException, ClassNotFoundException { super.unpersistFrom(in, aux); - _maxValue = in.readInt(); + try { + _maxValue = in.readInt(); + } catch (EOFException eofe) { + // hack to deal with old style IntStat converted to MaxIntStat + } } /** The largest value ever accumulated to this stat. */