From: Rudolf Polzer Date: Wed, 30 Oct 2024 16:50:40 +0000 (-0400) Subject: Fix another invalid array access. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a52d75c7f8c61bc838f90fa0fbe69371ea1739f1;p=xonotic%2Fxonotic-data.pk3dir.git Fix another invalid array access. --- diff --git a/qcsrc/server/bot/default/havocbot/havocbot.qc b/qcsrc/server/bot/default/havocbot/havocbot.qc index 2aa283520..33beb5d3e 100644 --- a/qcsrc/server/bot/default/havocbot/havocbot.qc +++ b/qcsrc/server/bot/default/havocbot/havocbot.qc @@ -1544,7 +1544,7 @@ void havocbot_chooseweapon(entity this, .entity weaponentity) // Should it do a weapon combo? float af, ct, combo_time, combo; - af = ATTACK_FINISHED(this, weaponentity); + af = this.(weaponentity) == WEP_Null ? 0.0 : ATTACK_FINISHED(this, weaponentity); ct = autocvar_bot_ai_weapon_combo_threshold; // Bots with no skill will be 4 times more slower than "godlike" bots when doing weapon combos