diff --git a/similar/arch/sdl/event.cpp b/similar/arch/sdl/event.cpp index e2a4c9e0e..31f79110b 100644 --- a/similar/arch/sdl/event.cpp +++ b/similar/arch/sdl/event.cpp @@ -27,7 +27,7 @@ void event_poll() // If the front window changes, exit this loop, otherwise unintended behavior can occur // like pressing 'Return' really fast at 'Difficulty Level' causing multiple games to be started - while ((wind == window_get_front()) && SDL_PollEvent(&event)) + while ((wind == window_get_front()) && (memset(&event, 0, sizeof(event)), SDL_PollEvent(&event))) { switch(event.type) { case SDL_KEYDOWN: