diff options
author | glx <glx@openttd.org> | 2019-12-18 18:21:23 +0100 |
---|---|---|
committer | Niels Martin Hansen <nielsm@indvikleren.dk> | 2019-12-21 20:13:03 +0100 |
commit | e3c75a30bac6837c0a525aa58d2b966eb232650f (patch) | |
tree | bab4c09231cfa51544f10b9c0f22f4899993fc86 /src/network | |
parent | ae532008ff3bc4195989e5c0ab2a9733473360ac (diff) | |
download | openttd-e3c75a30bac6837c0a525aa58d2b966eb232650f.tar.xz |
Fix: unused variable warnings
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/network.cpp | 4 |
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(); } /** |