summaryrefslogtreecommitdiff
path: root/src/net/tmwa/serverfeatures.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-05 20:15:08 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-06 01:18:57 +0300
commit8dcda5453e7fec40b1f55a66bf5f60f1b8dbd833 (patch)
tree512768b20e67c351daca72aad113f2b50dc94a2d /src/net/tmwa/serverfeatures.cpp
parent223641a3057a5abf0113440601e3b6330287d68b (diff)
downloadplus-8dcda5453e7fec40b1f55a66bf5f60f1b8dbd833.tar.gz
plus-8dcda5453e7fec40b1f55a66bf5f60f1b8dbd833.tar.bz2
plus-8dcda5453e7fec40b1f55a66bf5f60f1b8dbd833.tar.xz
plus-8dcda5453e7fec40b1f55a66bf5f60f1b8dbd833.zip
Fix server features initialisation.
Diffstat (limited to 'src/net/tmwa/serverfeatures.cpp')
-rw-r--r--src/net/tmwa/serverfeatures.cpp8
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;