diff options
author | Thierry Crozat | 2016-03-25 18:30:48 +0000 |
---|---|---|
committer | Thierry Crozat | 2016-03-25 18:30:48 +0000 |
commit | 50f9f19927f6f2587966d63226d4c5170c91db12 (patch) | |
tree | a370a0e764d8859721b3d5334d499d4a94eb19bb /backends/taskbar | |
parent | 24ce588b864eeeaeb7bb823081414697fa601e27 (diff) | |
download | scummvm-rg350-50f9f19927f6f2587966d63226d4c5170c91db12.tar.gz scummvm-rg350-50f9f19927f6f2587966d63226d4c5170c91db12.tar.bz2 scummvm-rg350-50f9f19927f6f2587966d63226d4c5170c91db12.zip |
OS X: Fix access to NSArray items with older SDKs
Diffstat (limited to 'backends/taskbar')
-rw-r--r-- | backends/taskbar/macosx/macosx-taskbar.mm | 2 |
1 files changed, 1 insertions, 1 deletions
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"]; |