From 7b155f111daf5d7ae477b16d0f0789b1113bea74 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 6 Jun 2012 00:04:33 +0300 Subject: Fix some issues after auto checking. --- src/net/serverinfo.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/net/serverinfo.h') 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 -- cgit v1.2.3-70-g09d2