--- oup/current/Global/RawList.pas 2007/04/01 16:15:47 147 +++ oup/current/Global/RawList.pas 2007/04/03 15:43:53 169 @@ -155,6 +155,7 @@ begin Data := nil; TAccess_OniArchive(ConManager.Connection[ConnectionID]).LoadRawOffset( False, baselink, lastlink + 1024, Data); + Data.Seek(lastlink, soFromBeginning); foundzeros := 0; repeat @@ -190,7 +191,7 @@ var templ: Integer; Data: TByteData; offset: Word; - frame_count: Byte; + frame_count: Integer; begin SetLength(Result, 13); ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $16C, 2, @frames); @@ -203,7 +204,10 @@ begin ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $10, 4, @link); Result[1].SrcOffset := $10; Result[1].RawAddr := link; - Result[1].RawSize := frames * 8; + if link > 0 then + Result[1].RawSize := frames * 8 + else + Result[1].RawSize := 0; {attacks} ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $182, 1, @tempb); ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $14, 4, @link); @@ -221,7 +225,7 @@ begin ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $1C, 4, @link); Result[4].SrcOffset := $1C; Result[4].RawAddr := link; - Result[4].RawSize := tempb * 8; + Result[4].RawSize := tempb * 12; {shortcut} ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $185, 1, @tempb); ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $20, 4, @link);