mirror of
https://github.com/ineedbots/iw3_bot_warfare.git
synced 2025-06-26 22:31:49 +00:00
Fix
This commit is contained in:
@ -403,6 +403,9 @@ getValidGrenade()
|
||||
possibles[possibles.size] = grenadeTypes[i];
|
||||
}
|
||||
|
||||
if (!possibles.size)
|
||||
return undefined;
|
||||
|
||||
return random(possibles);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user