From: Skye <57879983+Rainbeon@users.noreply.github.com> Date: Fri, 18 Apr 2025 23:26:44 +0000 (-0400) Subject: Fix Speedloader Partial Reload (#32396) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=5a1dd9de422684f1ef64a286bc52b6bd7e11bbdb;p=space-station-14.git Fix Speedloader Partial Reload (#32396) --- diff --git a/Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.Revolver.cs b/Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.Revolver.cs index 2c0204d946..38f427429f 100644 --- a/Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.Revolver.cs +++ b/Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.Revolver.cs @@ -130,7 +130,7 @@ public partial class SharedGunSystem return false; } - for (var i = Math.Min(ev.Ammo.Count - 1, component.Capacity - 1); i >= 0; i--) + for (var i = 0; i < component.Capacity; i++) { var index = (component.CurrentIndex + i) % component.Capacity;