mirror of
https://github.com/shiroikitsu8/Bayshore_6r_legacy.git
synced 2024-11-30 18:24:39 +01:00
fix ghost list randomizing
This commit is contained in:
parent
f9e9aedeb3
commit
13f52c8dd3
@ -358,7 +358,8 @@ export default class GhostModule extends Module {
|
||||
while(arr.length < maxNumber)
|
||||
{
|
||||
// Pick random car Id
|
||||
let randomNumber = MersenneTwister.int(0, maxNumber-1);
|
||||
let randomNumber = MersenneTwister.int(0, car.length-1);
|
||||
|
||||
if(arr.indexOf(randomNumber) === -1)
|
||||
{
|
||||
// Push current number to array
|
||||
|
Loading…
Reference in New Issue
Block a user