mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2025-02-09 01:56:47 -05:00
dat decoder: fixed lints
This commit is contained in:
parent
b6cb6f88a6
commit
a76ce059e8
@ -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())
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user