DEADSOFTWARE

sdl2sys: removed compiler warning (fpc warnings sux)
authorKetmar Dark <ketmar@ketmar.no-ip.org>
Sun, 13 Oct 2019 16:36:59 +0000 (19:36 +0300)
committerKetmar Dark <ketmar@ketmar.no-ip.org>
Sun, 13 Oct 2019 16:37:24 +0000 (19:37 +0300)
src/game/sdl2/g_system.pas

index 85e5d947e2dd9af743c1c4b5d48752ba40fbefd8..b7142a85bc03504b8cda40fc8c380e3a5af21d50 100644 (file)
@@ -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