this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #1665 from joshgoebel/spr_negative_one_crash

(fix) ignore negative index passed to spr

authored by

Vadim Grigoruk and committed by
GitHub
2064d28d d399308e

+3
+3
src/core/draw.c
··· 187 187 188 188 static void drawSprite(tic_core* core, s32 index, s32 x, s32 y, s32 w, s32 h, u8* colors, s32 count, s32 scale, tic_flip flip, tic_rotate rotate) 189 189 { 190 + if (index < 0) 191 + return; 192 + 190 193 tic_tilesheet sheet = getTileSheetFromSegment(&core->memory, core->memory.ram.vram.blit.segment); 191 194 if (w == 1 && h == 1) { 192 195 tic_tileptr tile = tic_tilesheet_gettile(&sheet, index, false);