about summary refs log tree commit diff
path: root/src/engine/network.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/network.cpp')
-rw-r--r--src/engine/network.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/network.cpp b/src/engine/network.cpp
index 5402aee7..e95022f9 100644
--- a/src/engine/network.cpp
+++ b/src/engine/network.cpp
@@ -305,7 +305,7 @@ static int conn_feed(NETCONNECTION *conn, NETPACKETDATA *p, NETADDR4 *addr)
 		else if(conn->state == NETWORK_CONNSTATE_CONNECT)
 		{
 			// connection made
-			if(p->flags == NETWORK_PACKETFLAG_CONNECT|NETWORK_PACKETFLAG_ACCEPT)
+			if(p->flags == (NETWORK_PACKETFLAG_CONNECT|NETWORK_PACKETFLAG_ACCEPT))
 			{
 				conn_send(conn, NETWORK_PACKETFLAG_ACCEPT, 0, 0);
 				conn->state = NETWORK_CONNSTATE_ONLINE;