summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2014-06-23 20:40:46 -0700
committerBen Longbons <b.r.longbons@gmail.com>2014-06-23 21:07:32 -0700
commitda6769f929be02a0b3b4d6c52b79922104cdd053 (patch)
tree37536156be568931d6751d65544d55ceb7c9464e /src/net
parent1c1752f40aac20bf9a5e56817951a013c2219bed (diff)
downloadtmwa-da6769f929be02a0b3b4d6c52b79922104cdd053.tar.gz
tmwa-da6769f929be02a0b3b4d6c52b79922104cdd053.tar.bz2
tmwa-da6769f929be02a0b3b4d6c52b79922104cdd053.tar.xz
tmwa-da6769f929be02a0b3b4d6c52b79922104cdd053.zip
Use the generated char server protocol in the map server
Diffstat (limited to 'src/net')
-rw-r--r--src/net/packets.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/packets.hpp b/src/net/packets.hpp
index 54167e8..4bb412f 100644
--- a/src/net/packets.hpp
+++ b/src/net/packets.hpp
@@ -188,7 +188,7 @@ RecvResult net_recv_opacket(Session *s, NetPacket_Head<id>& head, bool *has_opt,
if (nat.magic_packet_length < sizeof(NetPacket_Head<id>))
return RecvResult::Error;
size_t bytes_repeat = nat.magic_packet_length - sizeof(NetPacket_Head<id>);
- if (bytes_repeat % sizeof(NetPacket_Repeat<id>))
+ if (bytes_repeat % sizeof(NetPacket_Option<id>))
return RecvResult::Error;
size_t has_opt_pls = bytes_repeat / sizeof(NetPacket_Option<id>);
if (has_opt_pls > 1)