mirror of
https://github.com/ineedbots/iw3_bot_warfare.git
synced 2026-10-12 06:11:26 +00:00
Fix
This commit is contained in:
1 parent
5e2441e576
commit
138d21e5c2
1 file changed
+3
@@ -403,6 +403,9 @@ getValidGrenade()
|
|||||||
possibles[possibles.size] = grenadeTypes[i];
|
possibles[possibles.size] = grenadeTypes[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!possibles.size)
|
||||||
|
return undefined;
|
||||||
|
|
||||||
return random(possibles);
|
return random(possibles);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user