summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2019-12-18 18:21:23 +0100
committerNiels Martin Hansen <nielsm@indvikleren.dk>2019-12-21 20:13:03 +0100
commite3c75a30bac6837c0a525aa58d2b966eb232650f (patch)
treebab4c09231cfa51544f10b9c0f22f4899993fc86 /src/network
parentae532008ff3bc4195989e5c0ab2a9733473360ac (diff)
downloadopenttd-e3c75a30bac6837c0a525aa58d2b966eb232650f.tar.xz
Fix: unused variable warnings
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/network/network.cpp b/src/network/network.cpp
index a27aa224a..fe7e6a855 100644
--- a/src/network/network.cpp
+++ b/src/network/network.cpp
@@ -99,9 +99,7 @@ extern void StateGameLoop();
*/
bool HasClients()
{
- for (NetworkClientSocket *cs : NetworkClientSocket::Iterate()) return true;
-
- return false;
+ return !NetworkClientSocket::Iterate().empty();
}
/**