aboutsummaryrefslogtreecommitdiffstats
path: root/Game
diff options
context:
space:
mode:
Diffstat (limited to 'Game')
-rw-r--r--Game/Code/Classes/TextGL.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/Game/Code/Classes/TextGL.pas b/Game/Code/Classes/TextGL.pas
index 2cb9dfdf..f6c04b3a 100644
--- a/Game/Code/Classes/TextGL.pas
+++ b/Game/Code/Classes/TextGL.pas
@@ -205,7 +205,7 @@ var
begin
// Log.LogStatus(Text, 'glTextWidth');
Result := 0;
- for i := 0 to Length(text) do
+ for i := 0 to Length(text) -1 do // Patched by AlexanderS : bug with wrong sliced text lines
begin
Letter := Text[i];
// Bugfix: does not work with FPC, probably because a part of text is assigned to itself