From 50f9f19927f6f2587966d63226d4c5170c91db12 Mon Sep 17 00:00:00 2001 From: Thierry Crozat Date: Fri, 25 Mar 2016 18:30:48 +0000 Subject: OS X: Fix access to NSArray items with older SDKs --- backends/taskbar/macosx/macosx-taskbar.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/taskbar/macosx/macosx-taskbar.mm b/backends/taskbar/macosx/macosx-taskbar.mm index fd0bb23d7b..4e3ce70320 100644 --- a/backends/taskbar/macosx/macosx-taskbar.mm +++ b/backends/taskbar/macosx/macosx-taskbar.mm @@ -270,7 +270,7 @@ void MacOSXTaskbarManager::addRecent(const Common::String &name, const Common::S [newArray insertObject:dict atIndex:0]; // If the game was already present in the array, remove it for (int i = 1 ; i < [newArray count] ; ++i) { - NSDictionary* oldDict = newArray[i]; + NSDictionary* oldDict = [newArray objectAtIndex:i]; if (oldDict == nil) continue; NSString* oldGame = [oldDict valueForKey:@"game"]; -- cgit v1.2.3