1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-06-04 23:10:42 +00:00

dat decoder: fixed lints

This commit is contained in:
M. Sz 2021-02-08 10:03:34 +01:00
parent b6cb6f88a6
commit a76ce059e8

View File

@ -25,10 +25,10 @@ func Load(data []byte) (d2interface.Palette, error) {
}
// Marshal encodes data palettte back into byte slice
func (d *DATPalette) Marshal() []byte {
var result []byte
func (p *DATPalette) Marshal() []byte {
result := make([]byte, len(p.colors))
for _, i := range d.colors {
for _, i := range &p.colors {
result = append(result, i.B(), i.G(), i.R())
}