diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-06-06 00:04:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-06-06 00:04:33 +0300 |
commit | 7b155f111daf5d7ae477b16d0f0789b1113bea74 (patch) | |
tree | 2d2711ab1f9daed793171383af1a7e1fa6ff737c /src/net/serverinfo.h | |
parent | c3afff20d4989ab2835545715bbe67e5b5d9b353 (diff) | |
download | manaplus-7b155f111daf5d7ae477b16d0f0789b1113bea74.tar.gz manaplus-7b155f111daf5d7ae477b16d0f0789b1113bea74.tar.bz2 manaplus-7b155f111daf5d7ae477b16d0f0789b1113bea74.tar.xz manaplus-7b155f111daf5d7ae477b16d0f0789b1113bea74.zip |
Fix some issues after auto checking.
Diffstat (limited to 'src/net/serverinfo.h')
-rw-r--r-- | src/net/serverinfo.h | 22 |
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 |