Improve test for broken SSK und USK links
[Sone.git] / src / main / java / net / pterodactylus / sone / text / SoneTextParser.java
index c3c4068..39d26db 100644 (file)
@@ -334,6 +334,7 @@ public class SoneTextParser implements Parser<SoneTextParserContext> {
                        if (nextLink.isPresent()) {
                                if (nextLink.get().getPosition() < earliestLinkPosition) {
                                        earliestNextLink = nextLink.get();
+                                       earliestLinkPosition = earliestNextLink.getPosition();
                                }
                        }
                }