summaryrefslogtreecommitdiff
path: root/src/net/tmwserv
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-05-11 09:30:33 -0600
committerJared Adams <jaxad0127@gmail.com>2009-05-11 09:31:15 -0600
commit1bb315a8d32a8c0fb95a56ca495f387be7832cfc (patch)
tree1a32521f8d0c6600f9ab7904f416ddf997696f8e /src/net/tmwserv
parent53ba5a7a61ccb0c3c1bda91fafa372d0966dcc82 (diff)
downloadMana-1bb315a8d32a8c0fb95a56ca495f387be7832cfc.tar.gz
Mana-1bb315a8d32a8c0fb95a56ca495f387be7832cfc.tar.bz2
Mana-1bb315a8d32a8c0fb95a56ca495f387be7832cfc.tar.xz
Mana-1bb315a8d32a8c0fb95a56ca495f387be7832cfc.zip
Fix an odd segfault with custom item stats
Diffstat (limited to 'src/net/tmwserv')
-rw-r--r--src/net/tmwserv/generalhandler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/tmwserv/generalhandler.cpp b/src/net/tmwserv/generalhandler.cpp
index 0a0ca346..8a47e6f9 100644
--- a/src/net/tmwserv/generalhandler.cpp
+++ b/src/net/tmwserv/generalhandler.cpp
@@ -52,6 +52,8 @@ Net::Connection *gameServerConnection = 0;
Net::Connection *chatServerConnection = 0;
Net::Connection *accountServerConnection = 0;
+std::list<ItemDB::Stat*> stats;
+
namespace TmwServ {
GeneralHandler::GeneralHandler():
@@ -77,7 +79,6 @@ GeneralHandler::GeneralHandler():
generalHandler = this;
- std::list<ItemDB::Stat*> stats;
ItemDB::Stat stat;
stat.tag = "str"; stat.format = N_("Strength: %d");
stats.push_back(&stat);