# HG changeset patch # User Sam Lantinga # Date 1260087383 0 # Node ID 09155ec3e29189f95e9af633887b16ef8e0836e8 # Parent 59ff7a2beb57333f473f807818c6da3d6f80ded8 Fixed crash diff -r 59ff7a2beb57 -r 09155ec3e291 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 &&