From 8f4dae83a42eb9163dc190ef9814ff2b2112cd2a Mon Sep 17 00:00:00 2001 From: tic Date: Fri, 24 Nov 2017 11:32:22 +0300 Subject: [PATCH] crash fix --- src/tic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tic.c b/src/tic.c index f67145d..2031b3b 100644 --- a/src/tic.c +++ b/src/tic.c @@ -202,7 +202,7 @@ static void drawRectBorder(tic_machine* machine, s32 x, s32 y, s32 width, s32 he static void drawTile(tic_machine* machine, const tic_tile* buffer, s32 x, s32 y, u8* colors, s32 count, s32 scale, tic_flip flip, tic_rotate rotate) { - u8 transparent[TIC_PALETTE_SIZE]; + static u8 transparent[TIC_PALETTE_SIZE]; memset(transparent, 0, sizeof(transparent)); for (s32 i = 0; i < count; i++) transparent[colors[i]] = 1;