Fix illegal order check to correctly process UNKNOWN orders.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4324 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
e402233597
commit
6db69592ed
|
@ -724,9 +724,7 @@ BOOL recvGroupOrder()
|
|||
NETend();
|
||||
|
||||
/* Check if the order is valid */
|
||||
if (order == UNKNOWN
|
||||
|| (subType && !validOrderForObj(order))
|
||||
|| (!subType && !validOrderForLoc(order)))
|
||||
if (order != UNKNOWN && ((subType && !validOrderForObj(order)) || (!subType && !validOrderForLoc(order))))
|
||||
{
|
||||
debug(LOG_ERROR, "recvGroupOrder: Invalid group order received from %d!", NETgetSource());
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue