Skip to content

Commit aa1005d

Browse files
Todd CopeSiegeLord
authored andcommitted
Don't use direct indexing into 'NSMutableArray' as it's unsupported on older versions of MacOSX. Fixes liballeg#1435.
1 parent 23ad1bf commit aa1005d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addons/native_dialog/osx_dialog.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ void _al_shutdown_native_dialog_addon(void)
2222
NSMutableArray * work_array = [array mutableCopy];
2323

2424
for(NSInteger i = work_array.count - 1; i >= 0; i--){
25-
if([work_array[i] rangeOfString:@"/"].location != NSNotFound){
25+
if([[work_array objectAtIndex: i] rangeOfString:@"/"].location != NSNotFound){
2626
[work_array removeObjectAtIndex: i];
2727
}
2828
}

0 commit comments

Comments
 (0)