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/tmwa/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/tmwa/network.cpp')
-rw-r--r-- | src/net/tmwa/network.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net/tmwa/network.cpp b/src/net/tmwa/network.cpp index 28cfce499..b2c2f5bbd 100644 --- a/src/net/tmwa/network.cpp +++ b/src/net/tmwa/network.cpp @@ -89,6 +89,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() |