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