- Fixed a bug in ULandscape.pas which causes problems with InsideUO (staidx.size was not correctly set to zero when the entry was empty)

This commit is contained in:
Andreas Schneider 2008-03-09 22:11:48 +01:00
parent 15bcaa0686
commit 5b4ea92bb1
1 changed files with 1 additions and 1 deletions

View File

@ -536,11 +536,11 @@ begin
FStatics.Position := FStatics.Size; FStatics.Position := FStatics.Size;
index.Lookup := FStatics.Position; index.Lookup := FStatics.Position;
end; end;
index.Size := size;
if size = 0 then if size = 0 then
index.Lookup := LongInt($FFFFFFFF) index.Lookup := LongInt($FFFFFFFF)
else else
begin begin
index.Size := size;
FStatics.Position := index.Lookup; FStatics.Position := index.Lookup;
AWorldBlock.Write(FStatics); AWorldBlock.Write(FStatics);
end; end;