Skip to content

Commit 8f4dae8

Browse files
committed
crash fix
1 parent a694999 commit 8f4dae8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ static void drawRectBorder(tic_machine* machine, s32 x, s32 y, s32 width, s32 he
202202

203203
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)
204204
{
205-
u8 transparent[TIC_PALETTE_SIZE];
205+
static u8 transparent[TIC_PALETTE_SIZE];
206206
memset(transparent, 0, sizeof(transparent));
207207
for (s32 i = 0; i < count; i++) transparent[colors[i]] = 1;
208208

0 commit comments

Comments
 (0)