From d129a1b94f838f390e445b7ee51a4152f52dbd6d Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sat, 14 Nov 2026 22:56:26 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Load=20static=20blocks=20stored?= =?UTF-8?q?=20at=20file=20offset=20zero?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The lookup check treated offset 0 as empty, silently discarding the first static block of a freshly written statics file. --- UOLib/UStatics.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UOLib/UStatics.pas b/UOLib/UStatics.pas index e39cd65..6ed7c5c 100644 --- a/UOLib/UStatics.pas +++ b/UOLib/UStatics.pas @@ -179,7 +179,7 @@ begin FY := AY; FItems := TStaticItemList.Create(True); - if (AData <> nil) and (AIndex.Lookup > 0) and (AIndex.Size > 0) then + if (AData <> nil) and (AIndex.Lookup > -1) and (AIndex.Size > 0) then begin AData.Position := AIndex.Lookup; block := TMemoryStream.Create;