From 7dab24a64dbc7c50fbc1caf5aa2a8266ec0acf88 Mon Sep 17 00:00:00 2001 From: Major- Date: Wed, 6 Aug 2014 02:13:04 +0100 Subject: [PATCH] Fix error thrown by javac but not the eclipse compiler. --- src/org/apollo/io/player/impl/BinaryPlayerSaver.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/org/apollo/io/player/impl/BinaryPlayerSaver.java b/src/org/apollo/io/player/impl/BinaryPlayerSaver.java index 017606c9..94ebbefa 100644 --- a/src/org/apollo/io/player/impl/BinaryPlayerSaver.java +++ b/src/org/apollo/io/player/impl/BinaryPlayerSaver.java @@ -120,13 +120,13 @@ public final class BinaryPlayerSaver implements PlayerSaver { out.writeByte(type.getValue()); switch (type) { case BOOLEAN: - out.writeByte((boolean) attribute.getValue() ? 1 : 0); + out.writeByte((Boolean) attribute.getValue() ? 1 : 0); break; case DOUBLE: - out.writeDouble((double) attribute.getValue()); + out.writeDouble((Double) attribute.getValue()); break; case LONG: - out.writeLong((long) attribute.getValue()); + out.writeLong((Long) attribute.getValue()); break; case STRING: case SYMBOL: