From b7805c58045dc5d20763133406bb528fe0e4a49a Mon Sep 17 00:00:00 2001 From: Cold-Mint Date: Sat, 5 Oct 2024 09:52:53 +0800 Subject: [PATCH] =?UTF-8?q?Fixed=20array=20subscript=20out=20of=20bounds?= =?UTF-8?q?=20issue.=20=E4=BF=AE=E5=A4=8D=E6=95=B0=E7=BB=84=E4=B8=8B?= =?UTF-8?q?=E6=A0=87=E8=B6=8A=E7=95=8C=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/weapon/ProjectileWeapon.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/weapon/ProjectileWeapon.cs b/scripts/weapon/ProjectileWeapon.cs index c284fcd..aa45472 100644 --- a/scripts/weapon/ProjectileWeapon.cs +++ b/scripts/weapon/ProjectileWeapon.cs @@ -143,7 +143,7 @@ public partial class ProjectileWeapon : WeaponTemplate { //Has the ability to generate projectiles. //拥有抛射体生成能力。 - _spellProjectileIndexes.Add(i); + _spellProjectileIndexes.Add(_spells.Count - 1); } } }