# HG changeset patch # User Sam Lantinga # Date 1153646174 0 # Node ID dc864bcabcc4a8268b956b4aa89f2c8d01ff3707 # Parent 103c6fec2a60585a4ced92f19e7027f41d2c5ef5 Whoops, that's a while loop. :) diff -r 103c6fec2a60 -r dc864bcabcc4 src/video/cocoa/SDL_cocoaevents.m --- a/src/video/cocoa/SDL_cocoaevents.m Sun Jul 23 09:11:10 2006 +0000 +++ b/src/video/cocoa/SDL_cocoaevents.m Sun Jul 23 09:16:14 2006 +0000 @@ -157,7 +157,7 @@ NSAutoreleasePool *pool; pool = [[NSAutoreleasePool alloc] init]; - for ( ; [NSApp isRunning]; ) { + while ([NSApp isRunning]) { NSEvent *event = [NSApp nextEventMatchingMask:NSAnyEventMask untilDate:[NSDate distantPast] inMode:NSDefaultRunLoopMode dequeue:YES ]; if ( event == nil ) { break;