summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-04-02 04:11:12 +0300
committerAndrei Karas <akaras@inbox.ru>2018-04-02 04:11:12 +0300
commit5400a3120742494281f6cce43545657432a08f25 (patch)
treebe843b338f34ef2d6d474121031a7b57f82f677b /src/net
parentecae89e342fc07daa816fe7de133968a51745040 (diff)
downloadmanaverse-5400a3120742494281f6cce43545657432a08f25.tar.gz
manaverse-5400a3120742494281f6cce43545657432a08f25.tar.bz2
manaverse-5400a3120742494281f6cce43545657432a08f25.tar.xz
manaverse-5400a3120742494281f6cce43545657432a08f25.zip
Add some missing brackets in macroses.
Diffstat (limited to 'src/net')
-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