summaryrefslogtreecommitdiff
path: root/src/net/net.h
diff options
context:
space:
mode:
authorStefan Dombrowski <stefan@uni-bonn.de>2010-09-04 23:50:20 +0200
committerStefan Dombrowski <stefan@uni-bonn.de>2010-09-05 00:04:04 +0200
commitc99347bf9108367c02dcbdebadec0b978a750c57 (patch)
tree7ec1dd12fc93098a7ee62b2610ed7ddcf72dc2a2 /src/net/net.h
parent49452a005f4273b3ec91470883f308690e2269ac (diff)
downloadmana-client-c99347bf9108367c02dcbdebadec0b978a750c57.tar.gz
mana-client-c99347bf9108367c02dcbdebadec0b978a750c57.tar.bz2
mana-client-c99347bf9108367c02dcbdebadec0b978a750c57.tar.xz
mana-client-c99347bf9108367c02dcbdebadec0b978a750c57.zip
Fixing segmentation fault if server is given on command line
If server and port was given on the command line, then the server type was unknown. The command line options do work now, but only if standard ports 6901 and 9601 are used. This resolves http://bugs.manasource.org/view.php?id=177 TODO: Query the server about itself and choose the server type based on that. Reviewed-by: Jaxad0127
Diffstat (limited to 'src/net/net.h')
-rw-r--r--src/net/net.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/net.h b/src/net/net.h
index 9d9ee10e..6029f3ba 100644
--- a/src/net/net.h
+++ b/src/net/net.h
@@ -67,7 +67,7 @@ ServerInfo::Type getNetworkType();
/**
* Handles server detection and connection
*/
-void connectToServer(const ServerInfo &server);
+void connectToServer(ServerInfo &server);
void unload();