]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/bot/default/bot.qc
Fix typo
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / bot / default / bot.qc
index cb83896c22317169767e72ca953da029a0852e47..bc9c0e18e94b16dd7af86d528abc7e9b71c22882 100644 (file)
@@ -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;