🐛 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:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user