Skip to content

Commit

Permalink
Don't use direct indexing into 'NSMutableArray' as it's unsupported o…
Browse files Browse the repository at this point in the history
…n older versions of MacOSX. Fixes liballeg#1435.
  • Loading branch information
Todd Cope authored and SiegeLord committed May 1, 2023
1 parent 23ad1bf commit aa1005d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/native_dialog/osx_dialog.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ void _al_shutdown_native_dialog_addon(void)
NSMutableArray * work_array = [array mutableCopy];

for(NSInteger i = work_array.count - 1; i >= 0; i--){
if([work_array[i] rangeOfString:@"/"].location != NSNotFound){
if([[work_array objectAtIndex: i] rangeOfString:@"/"].location != NSNotFound){
[work_array removeObjectAtIndex: i];
}
}
Expand Down

0 comments on commit aa1005d

Please sign in to comment.