mirror of
https://github.com/ineedbots/iw3_bot_warfare.git
synced 2025-04-20 17:55:42 +00:00
Fix
This commit is contained in:
parent
5e2441e576
commit
138d21e5c2
@ -403,6 +403,9 @@ getValidGrenade()
|
|||||||
possibles[possibles.size] = grenadeTypes[i];
|
possibles[possibles.size] = grenadeTypes[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!possibles.size)
|
||||||
|
return undefined;
|
||||||
|
|
||||||
return random(possibles);
|
return random(possibles);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user