From: terencehill Date: Sun, 16 Feb 2020 12:57:05 +0000 (+0100) Subject: Fix typo X-Git-Tag: xonotic-v0.8.5~1155 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1b85f2295ca8033209942370f25a25e2e76f14ba;p=xonotic%2Fxonotic-data.pk3dir.git Fix typo --- diff --git a/qcsrc/server/bot/default/bot.qc b/qcsrc/server/bot/default/bot.qc index cb83896c2..bc9c0e18e 100644 --- a/qcsrc/server/bot/default/bot.qc +++ b/qcsrc/server/bot/default/bot.qc @@ -385,7 +385,7 @@ void bot_custom_weapon_priority_setup() tokens = tokenizebyseparator(W_NumberWeaponOrder(autocvar_bot_ai_custom_weapon_priority_close)," "); c = 0; - for(i=0; i < tokens && i < Weapons_COUNT; ++i){ + for(i=0; i < tokens && c < Weapons_COUNT; ++i){ w = stof(argv(i)); if ( w >= WEP_FIRST && w <= WEP_LAST) { bot_weapons_close[c] = w;