From b222709a6fd9114002ec5f60b94c6b1f01cef5a6 Mon Sep 17 00:00:00 2001 From: INeedBots Date: Thu, 26 Nov 2020 01:22:33 -0600 Subject: [PATCH] Fix --- userraw/maps/mp/bots/_bot_utility.gsc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/userraw/maps/mp/bots/_bot_utility.gsc b/userraw/maps/mp/bots/_bot_utility.gsc index 56a79b1..5b1a398 100644 --- a/userraw/maps/mp/bots/_bot_utility.gsc +++ b/userraw/maps/mp/bots/_bot_utility.gsc @@ -451,6 +451,9 @@ getValidGrenade() possibles[possibles.size] = grenadeTypes[i]; } + + if (!possibles.size) + return undefined; return random(possibles); }