diff -r a2f9a9a62dc5 -r 896ed2afcfb8 project_files/HedgewarsMobile/Classes/FortsViewController.m --- a/project_files/HedgewarsMobile/Classes/FortsViewController.m Sun Apr 22 03:59:24 2012 +0200 +++ b/project_files/HedgewarsMobile/Classes/FortsViewController.m Sun Apr 22 04:48:11 2012 +0200 @@ -39,7 +39,7 @@ NSArray *directoryContents = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:FORTS_DIRECTORY() error:NULL]; NSMutableArray *filteredContents = [[NSMutableArray alloc] initWithCapacity:([directoryContents count] / IMGNUM_PER_FORT)]; // we need to remove the double entries and the L.png suffix - for (int i = 0; i < [directoryContents count]; i++) { + for (NSUInteger i = 0; i < [directoryContents count]; i++) { if (i % IMGNUM_PER_FORT == IMGNUM_PER_FORT-1) { NSString *currentName = [directoryContents objectAtIndex:i]; NSString *correctName = [currentName substringToIndex:([currentName length] - 5)];