Skip to content

Commit bb6e54c

Browse files
committed
fix data type
1 parent cf138cd commit bb6e54c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

minesweeper.c

+5-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ static void render_callback(Canvas* const canvas, void* ctx) {
9999
furi_string_printf(timeStr, "%01d:%02d", minutes, seconds);
100100
canvas_draw_str_aligned(canvas, 128, 0, AlignRight, AlignTop, furi_string_get_cstr(timeStr));
101101

102-
uint8_t tile_to_draw;
102+
uint8_t* tile_to_draw;
103103

104104
for (int y = 0; y < PLAYFIELD_HEIGHT; y++) {
105105
for (int x = 0; x < PLAYFIELD_WIDTH; x++) {
@@ -143,6 +143,10 @@ static void render_callback(Canvas* const canvas, void* ctx) {
143143
case TileTypeMine:
144144
tile_to_draw = tile_mine_bits;
145145
break;
146+
default:
147+
// this should never happen
148+
tile_to_draw = tile_mine_bits;
149+
break;
146150
}
147151
canvas_draw_xbm(
148152
canvas,

0 commit comments

Comments
 (0)