1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-12-25 19:46:50 -05:00

dt1: lintfix

This commit is contained in:
M. Sz 2021-03-29 11:41:31 +02:00
parent db89a09f9d
commit d946094162

View File

@ -179,9 +179,6 @@ func LoadDT1(fileData []byte) (*DT1, error) {
tile.Blocks = make([]Block, numBlocks)
br.SkipBytes(numUnknownTileBytes4)
if err != nil {
return nil, err
}
result.Tiles[tileIdx] = tile
}
@ -202,9 +199,6 @@ func LoadDT1(fileData []byte) (*DT1, error) {
}
br.SkipBytes(numUnknownBlockBytes)
if err != nil {
return nil, err
}
result.Tiles[tileIdx].Blocks[blockIdx].GridX, err = br.ReadByte()
if err != nil {
@ -227,9 +221,6 @@ func LoadDT1(fileData []byte) (*DT1, error) {
}
br.SkipBytes(numUnknownBlockBytes)
if err != nil {
return nil, err
}
result.Tiles[tileIdx].Blocks[blockIdx].FileOffset, err = br.ReadInt32()
if err != nil {