project_files/HedgewarsMobile/Classes/InGameMenuViewController.m
changeset 3667 9359a70df013
parent 3662 a44406f4369b
child 3668 3f7a95234d8a
--- a/project_files/HedgewarsMobile/Classes/InGameMenuViewController.m	Fri Jul 23 22:14:56 2010 +0400
+++ b/project_files/HedgewarsMobile/Classes/InGameMenuViewController.m	Sat Jul 24 23:23:10 2010 +0200
@@ -149,9 +149,10 @@
 }
 
 -(void) removeChat {
-    HW_chatEnd();
-    if (SDL_iPhoneKeyboardIsShown(sdlwindow))
+    if (SDL_iPhoneKeyboardIsShown(sdlwindow)) {
         SDL_iPhoneKeyboardHide(sdlwindow);
+        HW_chatEnd();
+    }
 }
 
 #pragma mark -