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