1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-06-22 23:25:23 +00:00

Fixed bug in palette.go (#575)

This commit is contained in:
Intyre 2020-07-11 05:04:35 +02:00 committed by GitHub
parent aecd047cf3
commit c66a3d5e7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()