cocoaTouch/SDLOverrides/SDL_uikitappdelegate.m
changeset 3122 e005359efc59
parent 3116 97dc65a47b15
child 3199 1a9938a27677
--- 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 {