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
@ -452,6 +452,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