# HG changeset patch # User unc0rr # Date 1306523903 -14400 # Node ID 5612e01252ce72640889cbd778f039b49bd99f74 # Parent e69bf244a127308d3c09933baac9aa7df8536818 Don't allocate SDL_event structure on stack diff -r e69bf244a127 -r 5612e01252ce hedgewars/hwengine.pas --- a/hedgewars/hwengine.pas Wed May 25 14:21:40 2011 +0200 +++ b/hedgewars/hwengine.pas Fri May 27 23:18:23 2011 +0400 @@ -141,8 +141,11 @@ /////////////////// procedure MainLoop; +{$WARNINGS OFF} +// disable "Some fields weren't initialized" warning +const event: TSDL_Event = (); +{$WARNINGS ON} var PrevTime, CurrTime: Longword; - event: TSDL_Event; begin PrevTime:= SDL_GetTicks; while isTerminated = false do