Sprites export with wrong palette #364

This commit is contained in:
BADIM-PC\Vadim 2017-11-08 21:11:29 +03:00
parent 78d8b19766
commit 08c3bd9e2b
1 changed files with 1 additions and 1 deletions

View File

@ -288,7 +288,7 @@ static s32 writeGifData(const tic_mem* tic, u8* dst, const u8* src, s32 width, s
if(palette)
{
const tic_rgb* pal = tic->ram.vram.palette.colors;
const tic_rgb* pal = tic->cart.palette.colors;
for(s32 i = 0; i < TIC_PALETTE_SIZE; i++, pal++)
palette[i].r = pal->r, palette[i].g = pal->g, palette[i].b = pal->b;