summaryrefslogtreecommitdiff
path: root/src/net/tmwa/network.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/tmwa/network.cpp')
-rw-r--r--src/net/tmwa/network.cpp6
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()