diff options
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/input.cc | 1 |
1 files changed, 1 insertions, 0 deletions
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; |