summaryrefslogtreecommitdiff
path: root/src/net/serverinfo.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-22 16:46:10 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-22 16:46:10 +0300
commitbf71334ee1f0b194d5ef692f1abe6bf65eab3300 (patch)
treee0b1f1bbefd48874baee530f2c8b7e0bca96b4b8 /src/net/serverinfo.h
parente327c0f591dbc602376d85659e666cdbdd62b386 (diff)
downloadmanaverse-bf71334ee1f0b194d5ef692f1abe6bf65eab3300.tar.gz
manaverse-bf71334ee1f0b194d5ef692f1abe6bf65eab3300.tar.bz2
manaverse-bf71334ee1f0b194d5ef692f1abe6bf65eab3300.tar.xz
manaverse-bf71334ee1f0b194d5ef692f1abe6bf65eab3300.zip
Dont use server type in server comparator.
Diffstat (limited to 'src/net/serverinfo.h')
-rw-r--r--src/net/serverinfo.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/serverinfo.h b/src/net/serverinfo.h
index a17e5b3b2..e96f7d8ea 100644
--- a/src/net/serverinfo.h
+++ b/src/net/serverinfo.h
@@ -116,13 +116,13 @@ class ServerInfo final
bool operator==(const ServerInfo &other) const
{
- return (type == other.type && hostname == other.hostname &&
+ return (name == other.name && hostname == other.hostname &&
port == other.port);
}
bool operator!=(const ServerInfo &other) const
{
- return (type != other.type || hostname != other.hostname ||
+ return (name != other.name || hostname != other.hostname ||
port != other.port);
}