diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-09-22 20:41:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-09-22 20:57:06 +0300 |
commit | d27c8b53bcd8c7e8e0aa74656e32aeb688629b4b (patch) | |
tree | 97437c91403731ced2c099c6906c00716f8a3a1d /src/net/eathena/network.cpp | |
parent | 0533718792de26406c56257e4aea7f28d898a132 (diff) | |
download | mv-d27c8b53bcd8c7e8e0aa74656e32aeb688629b4b.tar.gz mv-d27c8b53bcd8c7e8e0aa74656e32aeb688629b4b.tar.bz2 mv-d27c8b53bcd8c7e8e0aa74656e32aeb688629b4b.tar.xz mv-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.cpp | 6 |
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() |