summaryrefslogtreecommitdiff
path: root/roadveh_cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'roadveh_cmd.c')
-rw-r--r--roadveh_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/roadveh_cmd.c b/roadveh_cmd.c
index 421e809cc..bc29715a9 100644
--- a/roadveh_cmd.c
+++ b/roadveh_cmd.c
@@ -990,7 +990,7 @@ static int PickRandomBit(uint bits)
num++;
} while (b >>= 1);
- num = GB(Random(), 0, 16) * num >> 16;
+ num = RandomRange(num);
for(i=0; !((bits & 1) && ((int)--num) < 0); bits>>=1,i++);
return i;