diff options
Diffstat (limited to 'src/net/recvpacketdefine.h')
-rw-r--r-- | src/net/recvpacketdefine.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/recvpacketdefine.h b/src/net/recvpacketdefine.h index 1ef0b4c55..840e7f2ed 100644 --- a/src/net/recvpacketdefine.h +++ b/src/net/recvpacketdefine.h @@ -21,9 +21,10 @@ #ifndef NET_RECVPACKETDEFINE_H #define NET_RECVPACKETDEFINE_H -#define packet(pname, pid, sz, pfunc) \ +#define packet(pname, pid, sz, pfunc, ver) \ mPackets[pid].name = #pname; \ mPackets[pid].len = sz; \ - mPackets[pid].func = pfunc + mPackets[pid].func = pfunc; \ + mPackets[pid].version = ver #endif // NET_RECVPACKETDEFINE_H |