--- a/cocoaTouch/SDLOverrides/SDL_uikitappdelegate.m Sat Mar 27 17:45:26 2010 +0000
+++ b/cocoaTouch/SDLOverrides/SDL_uikitappdelegate.m Sat Mar 27 17:45:51 2010 +0000
@@ -52,13 +52,15 @@
}
-(id) init {
- self = [super init];
- self.uiwindow = nil;
- self.window = NULL;
- self.viewController = nil;
- self.overlayController = nil;
- isInGame = NO;
- return self;
+ if (self = [super init]){
+ self.uiwindow = nil;
+ self.window = NULL;
+ self.viewController = nil;
+ self.overlayController = nil;
+ isInGame = NO;
+ return self;
+ } else
+ return nil;
}
-(void) dealloc {