summaryrefslogtreecommitdiff
path: root/src/net/eathena/network.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-09-22 20:41:19 +0300
committerAndrei Karas <akaras@inbox.ru>2015-09-22 20:57:06 +0300
commitd27c8b53bcd8c7e8e0aa74656e32aeb688629b4b (patch)
tree97437c91403731ced2c099c6906c00716f8a3a1d /src/net/eathena/network.cpp
parent0533718792de26406c56257e4aea7f28d898a132 (diff)
downloadmanaplus-d27c8b53bcd8c7e8e0aa74656e32aeb688629b4b.tar.gz
manaplus-d27c8b53bcd8c7e8e0aa74656e32aeb688629b4b.tar.bz2
manaplus-d27c8b53bcd8c7e8e0aa74656e32aeb688629b4b.tar.xz
manaplus-d27c8b53bcd8c7e8e0aa74656e32aeb688629b4b.zip
add way for reload packets db. For now it useless.
Diffstat (limited to 'src/net/eathena/network.cpp')
-rw-r--r--src/net/eathena/network.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net/eathena/network.cpp b/src/net/eathena/network.cpp
index 2842760a7..1271f029c 100644
--- a/src/net/eathena/network.cpp
+++ b/src/net/eathena/network.cpp
@@ -108,6 +108,12 @@ void Network::registerHandlers()
void Network::clearHandlers()
{
+ for (size_t f = 0; f < packet_lengths_size; f ++)
+ {
+ mPackets[f].name = "";
+ mPackets[f].len = 0;
+ mPackets[f].func = nullptr;
+ }
}
void Network::dispatchMessages()