Skip to content

Commit

Permalink
Fixes #231
Browse files Browse the repository at this point in the history
Logic issue.
  • Loading branch information
BONNe committed May 6, 2020
1 parent 8d55143 commit d11226d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1526,7 +1526,7 @@ public ChallengeLevel getLatestUnlockedLevel(User user, World world)
LevelStatus lastStatus = null;

for (Iterator<LevelStatus> statusIterator = this.getAllChallengeLevelStatus(user, world).iterator();
statusIterator.hasNext() && (lastStatus == null || !lastStatus.isUnlocked());)
statusIterator.hasNext() && (lastStatus == null || lastStatus.isUnlocked());)
{
lastStatus = statusIterator.next();
}
Expand Down

0 comments on commit d11226d

Please sign in to comment.