aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/files
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/files')
-rw-r--r--main/src/cgeo/geocaching/files/LocParser.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/files/LocParser.java b/main/src/cgeo/geocaching/files/LocParser.java
index a5a4b9c..a3d9b8a 100644
--- a/main/src/cgeo/geocaching/files/LocParser.java
+++ b/main/src/cgeo/geocaching/files/LocParser.java
@@ -109,7 +109,7 @@ public final class LocParser extends FileParser {
break;
case "container":
if (xpp.next() == XmlPullParser.TEXT) {
- currentCache.setSize(SIZES[Integer.valueOf(xpp.getText()) - 1]);
+ currentCache.setSize(SIZES[Integer.parseInt(xpp.getText()) - 1]);
}
break;
case "difficulty":