diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-05 20:15:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-06 01:18:57 +0300 |
commit | 8dcda5453e7fec40b1f55a66bf5f60f1b8dbd833 (patch) | |
tree | 512768b20e67c351daca72aad113f2b50dc94a2d /src/net/tmwa/serverfeatures.cpp | |
parent | 223641a3057a5abf0113440601e3b6330287d68b (diff) | |
download | manaplus-8dcda5453e7fec40b1f55a66bf5f60f1b8dbd833.tar.gz manaplus-8dcda5453e7fec40b1f55a66bf5f60f1b8dbd833.tar.bz2 manaplus-8dcda5453e7fec40b1f55a66bf5f60f1b8dbd833.tar.xz manaplus-8dcda5453e7fec40b1f55a66bf5f60f1b8dbd833.zip |
Fix server features initialisation.
Diffstat (limited to 'src/net/tmwa/serverfeatures.cpp')
-rw-r--r-- | src/net/tmwa/serverfeatures.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp index d2aba176b..416183e3f 100644 --- a/src/net/tmwa/serverfeatures.cpp +++ b/src/net/tmwa/serverfeatures.cpp @@ -20,13 +20,21 @@ #include "net/tmwa/serverfeatures.h" +#include "net/net.h" + #include "debug.h" extern int serverVersion; +extern Net::ServerFeatures *serverFeatures; namespace TmwAthena { +ServerFeatures::ServerFeatures() +{ + serverFeatures = this; +} + bool ServerFeatures::haveOnlineList() const { return serverVersion >= 3; |