Skip to content

Commit

Permalink
Merge pull request cinder#480 from pizthewiz/range-exception-osx
Browse files Browse the repository at this point in the history
avoid out of bounds access when windowless
  • Loading branch information
richardeakin committed Aug 10, 2014
2 parents 771414b + 6e196df commit a62e20c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cinder/app/AppImplCocoaBasic.mm
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ - (void)applicationDidFinishLaunching:(NSNotification *)aNotification
winIt->mWindowRef->emitResize();
}

// make the first window the active window
[self setActiveWindow:[mWindows objectAtIndex:0]];
// when available, make the first window the active window
[self setActiveWindow:[mWindows firstObject]];
[self startAnimationTimer];
}

Expand Down

0 comments on commit a62e20c

Please sign in to comment.