src/events/SDL_mouse.c
changeset 2727 76c2fc9696ea
parent 2725 6ce6d56b63bf
child 2765 f55c87ae336b
     1.1 --- a/src/events/SDL_mouse.c	Tue Aug 26 06:03:48 2008 +0000
     1.2 +++ b/src/events/SDL_mouse.c	Tue Aug 26 07:34:23 2008 +0000
     1.3 @@ -374,6 +374,11 @@
     1.4      int index = SDL_GetMouseIndexId(id);
     1.5      SDL_Mouse *mouse = SDL_GetMouse(index);
     1.6      int posted = 0;
     1.7 +
     1.8 +    if (!mouse) {
     1.9 +        return 0;
    1.10 +    }
    1.11 +
    1.12      last_x = x;
    1.13      last_y = y;
    1.14      if (SDL_ProcessEvents[type] == SDL_ENABLE) {