]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix typo
authorterencehill <piuntn@gmail.com>
Sun, 16 Feb 2020 12:57:05 +0000 (13:57 +0100)
committerterencehill <piuntn@gmail.com>
Sun, 16 Feb 2020 12:57:05 +0000 (13:57 +0100)
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;