🐛 Load static blocks stored at file offset zero

The lookup check treated offset 0 as empty, silently discarding the
first static block of a freshly written statics file.
This commit is contained in:
2026-11-15 22:06:50 +01:00
parent c0121312ed
commit d129a1b94f
+1 -1
View File
@@ -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;