diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-18 17:22:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-19 15:12:21 +0300 |
commit | 672cf3cd97259daf2bc2b68ba433c6a4788feb6a (patch) | |
tree | 3955f00bb270f644120d94866a18208c73948bed /src/net/ea/network.cpp | |
parent | fce4ca750fbd4a289e38aa3a96c0ab872947e8b3 (diff) | |
download | manaplus-672cf3cd97259daf2bc2b68ba433c6a4788feb6a.tar.gz manaplus-672cf3cd97259daf2bc2b68ba433c6a4788feb6a.tar.bz2 manaplus-672cf3cd97259daf2bc2b68ba433c6a4788feb6a.tar.xz manaplus-672cf3cd97259daf2bc2b68ba433c6a4788feb6a.zip |
add missing break in network.
also fix function pointer.
Diffstat (limited to 'src/net/ea/network.cpp')
-rw-r--r-- | src/net/ea/network.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/ea/network.cpp b/src/net/ea/network.cpp index ab76fd220..7c2963671 100644 --- a/src/net/ea/network.cpp +++ b/src/net/ea/network.cpp @@ -113,7 +113,7 @@ bool Network::connect(ServerInfo server) mToSkip = 0; mState = CONNECTING; - mWorkerThread = SDL::createThread(networkThread, "network", this); + mWorkerThread = SDL::createThread(&networkThread, "network", this); if (!mWorkerThread) { setError("Unable to create network worker thread"); @@ -249,6 +249,7 @@ void Network::receive() { case -1: logger->log1("Error: TcpNet::checkSockets"); + break; // FALLTHROUGH case 0: break; |