From 49713ac9ca1dc86245761244d30c2d2dd4ddaa3b Mon Sep 17 00:00:00 2001 From: acidphantasm Date: Sat, 25 Apr 2026 22:27:23 -0500 Subject: [PATCH] Move fitAttempts to properly increase for each attempt to give a loop escape --- .../WeaponGen/Implementations/ExternalInventoryMagGen.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Libraries/SPTarkov.Server.Core/Generators/WeaponGen/Implementations/ExternalInventoryMagGen.cs b/Libraries/SPTarkov.Server.Core/Generators/WeaponGen/Implementations/ExternalInventoryMagGen.cs index c09031605..f66feb4a1 100644 --- a/Libraries/SPTarkov.Server.Core/Generators/WeaponGen/Implementations/ExternalInventoryMagGen.cs +++ b/Libraries/SPTarkov.Server.Core/Generators/WeaponGen/Implementations/ExternalInventoryMagGen.cs @@ -145,9 +145,10 @@ public void Process(InventoryMagGen inventoryMagGen) magazineTpl = result.Id; magTemplate = result; - fitAttempts++; } + fitAttempts++; + // Reduce loop counter by 1 to ensure we get full cout of desired magazines i--; }