From 8740d326219124c889ae223e45a8d17edd786570 Mon Sep 17 00:00:00 2001 From: Colin McDonald Date: Sun, 26 Jun 2016 21:31:59 -0400 Subject: [PATCH] Fix infinite while loop issue --- src/main/java/net/frozenorb/apiv3/model/User.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/frozenorb/apiv3/model/User.java b/src/main/java/net/frozenorb/apiv3/model/User.java index 549e45e..024bcb8 100644 --- a/src/main/java/net/frozenorb/apiv3/model/User.java +++ b/src/main/java/net/frozenorb/apiv3/model/User.java @@ -551,7 +551,7 @@ public final class User { iterator.remove(); } - parent = Rank.findById(otherRank.getInheritsFromId()); + parent = Rank.findById(parent.getInheritsFromId()); } } }