--- a/project_files/HedgewarsMobile/Classes/GameConfigViewController.m Tue Aug 18 00:51:23 2015 +0200
+++ b/project_files/HedgewarsMobile/Classes/GameConfigViewController.m Tue Aug 18 01:08:21 2015 +0200
@@ -230,7 +230,8 @@
}
-(void) loadNiceHogs {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
+ @autoreleasepool {
+
srand(time(NULL));
NSString *filePath = [[NSString alloc] initWithFormat:@"%@/Hedgehog/Idle.png",GRAPHICS_DIRECTORY()];
UIImage *hogSprite = [[UIImage alloc] initWithContentsOfFile:filePath];
@@ -284,7 +285,8 @@
[self.view addSubview:self.imgContainer];
[hogSprite release];
- [pool drain];
+
+ }
}
-(void) viewDidLoad {