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