From 672cf3cd97259daf2bc2b68ba433c6a4788feb6a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 18 Oct 2013 17:22:49 +0300 Subject: add missing break in network. also fix function pointer. --- src/net/ea/network.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2