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.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/recvpacketdefine.h b/src/net/recvpacketdefine.h
index a62acc468..e40b5d7ac 100644
--- a/src/net/recvpacketdefine.h
+++ b/src/net/recvpacketdefine.h
@@ -21,8 +21,9 @@
#ifndef NET_RECVPACKETDEFINE_H
#define NET_RECVPACKETDEFINE_H
-#define packet(pname, pid, sz, func) \
+#define packet(pname, pid, sz, pfunc) \
mPackets[pid].name = #pname; \
- mPackets[pid].len = sz
+ mPackets[pid].len = sz; \
+ mPackets[pid].func = pfunc
#endif // NET_RECVPACKETDEFINE_H