From ae80e83bbc5ca193e9065d8b6a6e886a331ea00e Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 23 Oct 2013 07:08:27 +0200 Subject: [PATCH] Use helper method. --- src/main/java/net/pterodactylus/sone/data/Profile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/pterodactylus/sone/data/Profile.java b/src/main/java/net/pterodactylus/sone/data/Profile.java index 898deb6..e4f9992 100644 --- a/src/main/java/net/pterodactylus/sone/data/Profile.java +++ b/src/main/java/net/pterodactylus/sone/data/Profile.java @@ -239,7 +239,7 @@ public class Profile implements Fingerprintable { } public void renameField(Field field, String newName) { - int indexOfField = fields.indexOf(field); + int indexOfField = getFieldIndex(field); if (indexOfField == -1) { return; } -- 2.7.4