project_files/HedgewarsMobile/Classes/IniParser.m
changeset 11568 e9ee87b28e17
parent 11567 836af7d4af69
child 12872 00215a7ec5f5
--- 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];
 }