From ee0667aff32349bc5edcc1519cbd1d549f50ab6b Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sun, 15 Nov 2026 09:18:17 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20Skip=20empty=20font=20info=20tab?= =?UTF-8?q?les?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A truncated font resource indexed an empty array on load. --- Client/UGLFont.pas | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Client/UGLFont.pas b/Client/UGLFont.pas index 550b880..fb6b355 100644 --- a/Client/UGLFont.pas +++ b/Client/UGLFont.pas @@ -185,7 +185,8 @@ begin AFontInfo.Read(FSpaceWidth, SizeOf(FSpaceWidth)); SetLength(FFontInfo, (AFontInfo.Size - AFontInfo.Position) div SizeOf(TFontInfo)); - AFontInfo.Read(FFontInfo[0], Length(FFontInfo) * SizeOf(TFontInfo)); + if Length(FFontInfo) > 0 then + AFontInfo.Read(FFontInfo[0], Length(FFontInfo) * SizeOf(TFontInfo)); end; procedure TGLFont.UpdateTexture;