summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 38b1f29f..13d310bf 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -65,7 +65,7 @@ bool running = true; /**< Determines if server keeps running */
Skill skillTree("base"); /**< Skill tree */
-Storage *store;
+Storage store;
/**
* SDL timer callback, sends a <code>TMW_WORLD_TICK</code> event.
@@ -115,7 +115,6 @@ void initialize()
script = new ScriptSquirrel("main.nut");
#endif
- store = new Storage();
}
/**
@@ -163,8 +162,6 @@ int main(int argc, char *argv[])
delete script;
#endif
delete logger;
-
- delete store;
}
/**
@@ -199,6 +196,8 @@ int main(int argc, char *argv[])
session->startListen(connectionHandler, SERVER_PORT);
logger->log("Listening on port %d...", SERVER_PORT);
+ std::cout << "Number of accounts on server: " << store.accountCount() << std::endl;
+
SDL_Event event;
while (running)