From a48adfbaf7e25bd5aa644b2f460c20b528eb0cc0 Mon Sep 17 00:00:00 2001 From: MX <10697207+xMasterX@users.noreply.github.com> Date: Thu, 9 Mar 2023 23:19:08 +0300 Subject: [PATCH] Fix some strange bug --- applications/plugins/heap_defence_game/heap_defence.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/applications/plugins/heap_defence_game/heap_defence.c b/applications/plugins/heap_defence_game/heap_defence.c index 378a42823..0958d4363 100644 --- a/applications/plugins/heap_defence_game/heap_defence.c +++ b/applications/plugins/heap_defence_game/heap_defence.c @@ -496,7 +496,9 @@ static void heap_defense_input_callback(InputEvent* input_event, FuriMessageQueu static void heap_defense_timer_callback(FuriMessageQueue* event_queue) { furi_assert(event_queue); - GameEvent event = {.type = EventGameTick, .input = {0}}; + GameEvent event; + event.type = EventGameTick; + event.input = (InputEvent){0}; furi_message_queue_put(event_queue, &event, 0); }