(svn r13740) -Fix (r13731): one could only join the first company.
authorrubidium
Sat, 19 Jul 2008 20:24:41 +0000
changeset 9664 469dad45a4d3
parent 9663 bcc853b3d1ac
child 9665 dd6c07db9d32
(svn r13740) -Fix (r13731): one could only join the first company.
src/network/network_client.cpp
--- a/src/network/network_client.cpp	Sat Jul 19 20:23:51 2008 +0000
+++ b/src/network/network_client.cpp	Sat Jul 19 20:24:41 2008 +0000
@@ -367,7 +367,7 @@
 		if (total == 0) return NETWORK_RECV_STATUS_CLOSE_QUERY;
 
 		current = (Owner)p->Recv_uint8();
-		if (!IsValidPlayerID(current)) return NETWORK_RECV_STATUS_CLOSE_QUERY;
+		if (current >= MAX_PLAYERS) return NETWORK_RECV_STATUS_CLOSE_QUERY;
 
 		p->Recv_string(_network_player_info[current].company_name, sizeof(_network_player_info[current].company_name));
 		_network_player_info[current].inaugurated_year = p->Recv_uint32();