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. */