src/events/SDL_mouse.c
changeset 8965 8eceea447276
parent 8963 f94215b55583
child 8976 1a5d959d7b32
     1.1 --- a/src/events/SDL_mouse.c	Sat Jun 28 12:48:29 2014 -0300
     1.2 +++ b/src/events/SDL_mouse.c	Sat Jun 28 12:50:17 2014 -0300
     1.3 @@ -248,7 +248,7 @@
     1.4  
     1.5      /* make sure that the pointers find themselves inside the windows,
     1.6         unless we have the mouse captured. */
     1.7 -    if ((window->flags & SDL_WINDOW_MOUSE_CAPTURE) == 0) {
     1.8 +    if (window != NULL && ((window->flags & SDL_WINDOW_MOUSE_CAPTURE) == 0)) {
     1.9          int x_max = 0, y_max = 0;
    1.10  
    1.11          // !!! FIXME: shouldn't this be (window) instead of (mouse->focus)?