diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-05-11 09:30:33 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-05-11 09:31:15 -0600 |
commit | 1bb315a8d32a8c0fb95a56ca495f387be7832cfc (patch) | |
tree | 1a32521f8d0c6600f9ab7904f416ddf997696f8e /src/net | |
parent | 53ba5a7a61ccb0c3c1bda91fafa372d0966dcc82 (diff) | |
download | mana-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')
-rw-r--r-- | src/net/ea/generalhandler.cpp | 2 | ||||
-rw-r--r-- | src/net/tmwserv/generalhandler.cpp | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/net/ea/generalhandler.cpp b/src/net/ea/generalhandler.cpp index b8d75671..477caf94 100644 --- a/src/net/ea/generalhandler.cpp +++ b/src/net/ea/generalhandler.cpp @@ -59,6 +59,7 @@ #include <list> Net::GeneralHandler *generalHandler; +std::list<ItemDB::Stat*> stats; namespace EAthena { @@ -87,7 +88,6 @@ GeneralHandler::GeneralHandler(): handledMessages = _messages; generalHandler = this; - std::list<ItemDB::Stat*> stats; ItemDB::Stat stat; stat.tag = "str"; stat.format = N_("Strength: %d"); stats.push_back(&stat); 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); |