summaryrefslogtreecommitdiff
path: root/src/net/eathena/network.cpp
diff options
context:
space:
mode:
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()