summaryrefslogtreecommitdiff
path: root/src/net/serverinfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/serverinfo.h')
-rw-r--r--src/net/serverinfo.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/serverinfo.h b/src/net/serverinfo.h
index 7df9e0066..efbdf015a 100644
--- a/src/net/serverinfo.h
+++ b/src/net/serverinfo.h
@@ -89,7 +89,7 @@ class ServerInfo final
version.second = info.version.second;
}
- void operator=(const ServerInfo &info)
+ ServerInfo &operator=(const ServerInfo &info)
{
type = info.type;
name = info.name;
@@ -105,6 +105,7 @@ class ServerInfo final
persistentIp = info.persistentIp;
version.first = info.version.first;
version.second = info.version.second;
+ return *this;
}
bool isValid() const A_WARN_UNUSED