# HG changeset patch # User antonc27 # Date 1456184478 -3600 # Node ID e9ee87b28e179f07eb5afb4df235687db614c356 # Parent 836af7d4af69bf7793ee2f0a99c8a61a88c61f07 - Campaign for iOS: Don't forget to add last parsed section in ini file diff -r 836af7d4af69 -r e9ee87b28e17 project_files/HedgewarsMobile/Classes/IniParser.m --- a/project_files/HedgewarsMobile/Classes/IniParser.m Tue Feb 23 00:29:46 2016 +0100 +++ b/project_files/HedgewarsMobile/Classes/IniParser.m Tue Feb 23 00:41:18 2016 +0100 @@ -51,6 +51,7 @@ [self parseLine:line]; } }]; + [self addLastParsedSectionToSections]; return [self copyParsedSections]; } @@ -101,6 +102,10 @@ } } +- (void)addLastParsedSectionToSections { + [self addPreviousSectionToSectionsIfNecessary]; +} + - (NSArray *)copyParsedSections { return [self.mutableSections copy]; }