File diff r2952:e97f823d2dbe → r2953:a59e10678800
roadveh_cmd.c
Show inline comments
 
@@ -944,7 +944,7 @@ static int PickRandomBit(uint bits)
 

	
 
	num = RandomRange(num);
 

	
 
	for(i=0; !((bits & 1) && ((int)--num) < 0); bits>>=1,i++);
 
	for (i = 0; !((bits & 1) && ((int)--num) < 0); bits >> = 1, i++);
 
	return i;
 
}