Fixed crash
authorSam Lantinga <slouken@libsdl.org>
Sun, 06 Dec 2009 08:16:23 +0000
changeset 352909155ec3e291
parent 3528 59ff7a2beb57
child 3530 e96be66e3673
Fixed crash
src/video/cocoa/SDL_cocoawindow.m
     1.1 --- a/src/video/cocoa/SDL_cocoawindow.m	Sun Dec 06 08:03:38 2009 +0000
     1.2 +++ b/src/video/cocoa/SDL_cocoawindow.m	Sun Dec 06 08:16:23 2009 +0000
     1.3 @@ -421,7 +421,7 @@
     1.4      NSScreen *candidate;
     1.5      int i, count = [screens count];
     1.6      for (i = 0; i < count; ++i) {
     1.7 -        screen = [screens objectAtIndex:i];
     1.8 +        candidate = [screens objectAtIndex:i];
     1.9          NSRect screenRect = [candidate frame];
    1.10          if (rect.origin.x >= screenRect.origin.x &&
    1.11              rect.origin.x < screenRect.origin.x + screenRect.size.width &&