SDL_PollEvent may return -1. Handle this.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3713 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
Meep-Eep
2011-12-28 18:26:00 +00:00
parent ef086c3fb4
commit c64e15b9e5
+1 -1
View File
@@ -186,7 +186,7 @@ TFB_ProcessEvents ()
{ {
SDL_Event Event; SDL_Event Event;
while (SDL_PollEvent (&Event)) while (SDL_PollEvent (&Event) > 0)
{ {
/* Run through the InputEvent filter. */ /* Run through the InputEvent filter. */
ProcessInputEvent (&Event); ProcessInputEvent (&Event);