mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2025-01-13 04:46:38 -05:00
Fixed bug in palette.go (#575)
This commit is contained in:
parent
aecd047cf3
commit
c66a3d5e7a
@ -12,7 +12,7 @@ func ImgIndexToRGBA(indexData []byte, palette d2interface.Palette) []byte {
|
||||
continue
|
||||
}
|
||||
|
||||
c := palette.GetColors()[indexData[i]]
|
||||
c, _ := palette.GetColor(int(indexData[i]))
|
||||
colorData[i*bytesPerPixel] = c.R()
|
||||
colorData[i*bytesPerPixel+1] = c.G()
|
||||
colorData[i*bytesPerPixel+2] = c.B()
|
||||
|
Loading…
Reference in New Issue
Block a user