From f4309287883a77443ca2852ef337a2d71c086e54 Mon Sep 17 00:00:00 2001 From: Fierelier Date: Thu, 10 Aug 2023 03:20:47 +0200 Subject: [PATCH] Fix reference for ENGINE_EVENT_UNKNOWN sizeof --- src/frontend/sdl/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/sdl/main.c b/src/frontend/sdl/main.c index 74578e3..d7c0a9e 100644 --- a/src/frontend/sdl/main.c +++ b/src/frontend/sdl/main.c @@ -31,7 +31,7 @@ struct ENGINE_EVENT * engine_event_get() { } unknown: - struct ENGINE_EVENT_UNKNOWN * data = engine_memory_alloc(NULL,sizeof(struct ENGINE_EVENT_INPUT_KB)); + struct ENGINE_EVENT_UNKNOWN * data = engine_memory_alloc(NULL,sizeof(struct ENGINE_EVENT_UNKNOWN)); event->type = ENGINE_EVENT_TYPE_UNKNOWN; event->data = data; return event;