From 08c3bd9e2be11e80b45329a193ec04ea2bb32225 Mon Sep 17 00:00:00 2001 From: "BADIM-PC\\Vadim" Date: Wed, 8 Nov 2017 21:11:29 +0300 Subject: [PATCH] Sprites export with wrong palette #364 --- src/console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/console.c b/src/console.c index c44fdb2..fd872e6 100644 --- a/src/console.c +++ b/src/console.c @@ -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;