]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix inventory enumerator resolve error (#22227)
authorLeon Friedrich <60421075+ElectroJr@users.noreply.github.com>
Thu, 7 Dec 2023 21:46:51 +0000 (16:46 -0500)
committerGitHub <noreply@github.com>
Thu, 7 Dec 2023 21:46:51 +0000 (08:46 +1100)
Content.Shared/Inventory/InventorySystem.Slots.cs

index 68b659c0e95be32973a43fa1cc18e34ca4394ab6..65b050c1c474c49329e55568be94324c8f0a1208 100644 (file)
@@ -87,7 +87,7 @@ public partial class InventorySystem : EntitySystem
 
     public bool TryGetContainerSlotEnumerator(Entity<InventoryComponent?> entity, out InventorySlotEnumerator containerSlotEnumerator, SlotFlags flags = SlotFlags.All)
     {
-        if (!Resolve(entity.Owner, ref entity.Comp))
+        if (!Resolve(entity.Owner, ref entity.Comp, false))
         {
             containerSlotEnumerator = default;
             return false;