From 3da609588ad6fe7eb0581e4678a2ec8c6c1c4a18 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Thu, 31 Jul 2008 12:43:43 +0000 Subject: more heisenbugs fixes --- src/client/input.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/client') diff --git a/src/client/input.cc b/src/client/input.cc index 052ffb2..b5d4c0d 100644 --- a/src/client/input.cc +++ b/src/client/input.cc @@ -580,6 +580,7 @@ void frame(float seconds) Key *key = 0; bool pressed = false; + memset(&event, 0, sizeof(SDL_Event)); while (SDL_PollEvent(&event)) { pressed = false; key = 0; -- cgit v1.2.3