- Campaign for iOS: Don't forget to add last parsed section in ini file
authorantonc27 <antonc27@mail.ru>
Tue, 23 Feb 2016 00:41:18 +0100
changeset 11573 e9ee87b28e17
parent 11572 836af7d4af69
child 11574 294ce0fa65d0
- Campaign for iOS: Don't forget to add last parsed section in ini file
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];
 }