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