project_files/HedgewarsMobile/Classes/ServerProtocolNetwork.m
changeset 6337 84e7d1a5e3df
parent 6320 238a6dc0e7ad
child 6700 e04da46ee43c
--- a/project_files/HedgewarsMobile/Classes/ServerProtocolNetwork.m	Sat Nov 12 21:53:39 2011 +0100
+++ b/project_files/HedgewarsMobile/Classes/ServerProtocolNetwork.m	Sat Nov 12 21:59:10 2011 +0100
@@ -58,8 +58,8 @@
     [super dealloc];
 }
 
-+(ServerProtocolNetwork *)openServerConnection {
-    ServerProtocolNetwork *connection = [[ServerProtocolNetwork alloc] init];
++(id) openServerConnection {
+    id connection = [[self alloc] init];
     [NSThread detachNewThreadSelector:@selector(serverProtocol)
                              toTarget:connection
                            withObject:nil];