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.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/net/serverinfo.h b/src/net/serverinfo.h
index b4bb1a2d8..d3c33d19f 100644
--- a/src/net/serverinfo.h
+++ b/src/net/serverinfo.h
@@ -51,24 +51,24 @@ public:
bool save;
- ServerInfo()
+ ServerInfo() :
+ type(TMWATHENA),
+ port(6901),
+ save(false)
{
- type = TMWATHENA;
- port = 6901;
- save = false;
version.first = 0;
}
- ServerInfo(const ServerInfo &info)
+ ServerInfo(const ServerInfo &info) :
+ type(info.type),
+ name(info.name),
+ hostname(info.hostname),
+ port(info.port),
+ description(info.description),
+ save(info.save)
{
- type = info.type;
- name = info.name;
- hostname = info.hostname;
- port = info.port;
- description = info.description;
version.first = info.version.first;
version.second = info.version.second;
- save = info.save;
}
bool isValid() const