summaryrefslogtreecommitdiff
path: root/src/net/recvpacketdefine.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/recvpacketdefine.h')
-rw-r--r--src/net/recvpacketdefine.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/recvpacketdefine.h b/src/net/recvpacketdefine.h
index f043c2364..1e282d09c 100644
--- a/src/net/recvpacketdefine.h
+++ b/src/net/recvpacketdefine.h
@@ -21,6 +21,7 @@
#ifndef NET_RECVPACKETDEFINE_H
#define NET_RECVPACKETDEFINE_H
-#define packet(pname, pid, sz) mPackets[pid].name = #pname
+#define packet(pname, pid, sz) mPackets[pid].name = #pname; \
+ mPackets[pid].len = sz
#endif // NET_RECVPACKETDEFINE_H