From: Ketmar Dark Date: Sun, 13 Oct 2019 16:36:59 +0000 (+0300) Subject: sdl2sys: removed compiler warning (fpc warnings sux) X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=commitdiff_plain;h=df21c986515fa0a93a10afbd789341894fcfe68d sdl2sys: removed compiler warning (fpc warnings sux) --- diff --git a/src/game/sdl2/g_system.pas b/src/game/sdl2/g_system.pas index 85e5d94..b7142a8 100644 --- a/src/game/sdl2/g_system.pas +++ b/src/game/sdl2/g_system.pas @@ -422,6 +422,7 @@ implementation var ev: TSDL_Event; begin result := false; + ZeroMemory(@ev, sizeof(ev)); while SDL_PollEvent(@ev) <> 0 do begin case ev.type_ of