From b5f010f0bbbde4f478253f2ac120954f1bb35b4c Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Tue, 24 Jul 2018 19:26:15 +1000 Subject: [PATCH] fix for sure this time --- ClassicalSharp/2D/Widgets/Chat/TextGroupWidget.cs | 4 ++-- src/Client/Widgets.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ClassicalSharp/2D/Widgets/Chat/TextGroupWidget.cs b/ClassicalSharp/2D/Widgets/Chat/TextGroupWidget.cs index b7b9f78d9..1a95693da 100644 --- a/ClassicalSharp/2D/Widgets/Chat/TextGroupWidget.cs +++ b/ClassicalSharp/2D/Widgets/Chat/TextGroupWidget.cs @@ -267,8 +267,8 @@ namespace ClassicalSharp.Gui.Widgets { for (; i < total && chars[i] != ' '; i++) { // Is this character the start of a line bool isBeg = false; - for (int j = 0; j < lines.Length; i++) { - if (j == begs[j]) { isBeg = true; break; } + for (int j = 0; j < lines.Length; j++) { + if (i == begs[j]) { isBeg = true; break; } } // Definitely not a multilined URL diff --git a/src/Client/Widgets.c b/src/Client/Widgets.c index 75b3063b1..cd3be2cd6 100644 --- a/src/Client/Widgets.c +++ b/src/Client/Widgets.c @@ -2342,8 +2342,8 @@ Int32 TextGroupWidget_UrlEnd(UChar* chars, Int32 total, Int32* begs, Int32 i) { for (; i < total && chars[i] != ' '; i++) { /* Is this character the start of a line */ bool isBeg = false; - for (j = 0; j < lines.Length; i++) { - if (j == begs[j]) { isBeg = true; break; } + for (j = 0; j < lines.Length; j++) { + if (i == begs[j]) { isBeg = true; break; } } /* Definitely not a multilined URL */