🐛 Load client static blocks stored at offset zero
The client used the same offset-zero bug as the server loader, dropping the first static block of a freshly written file.
This commit is contained in:
@@ -519,7 +519,7 @@ begin
|
|||||||
for i := 0 to 63 do
|
for i := 0 to 63 do
|
||||||
Cells[i] := TStaticItemList.Create;
|
Cells[i] := TStaticItemList.Create;
|
||||||
|
|
||||||
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
|
begin
|
||||||
AData.Position := AIndex.Lookup;
|
AData.Position := AIndex.Lookup;
|
||||||
block := TMemoryStream.Create;
|
block := TMemoryStream.Create;
|
||||||
|
|||||||
Reference in New Issue
Block a user