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.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/recvpacketdefine.h b/src/net/recvpacketdefine.h
index e038d3639..3530efa1f 100644
--- a/src/net/recvpacketdefine.h
+++ b/src/net/recvpacketdefine.h
@@ -28,9 +28,9 @@
mPackets[pid].version = ver
#define packet2(pname, pid, sz, pfunc, ver) \
- mPackets[pid + evolPacketOffset].name = #pname; \
- mPackets[pid + evolPacketOffset].len = sz; \
- mPackets[pid + evolPacketOffset].func = pfunc; \
- mPackets[pid + evolPacketOffset].version = ver
+ mPackets[(pid) + (evolPacketOffset)].name = #pname; \
+ mPackets[(pid) + (evolPacketOffset)].len = sz; \
+ mPackets[(pid) + (evolPacketOffset)].func = pfunc; \
+ mPackets[(pid) + (evolPacketOffset)].version = ver
#endif // NET_RECVPACKETDEFINE_H