Fix inventory enumerator resolve error (#22227)
This commit is contained in:
@@ -87,7 +87,7 @@ public partial class InventorySystem : EntitySystem
|
|||||||
|
|
||||||
public bool TryGetContainerSlotEnumerator(Entity<InventoryComponent?> entity, out InventorySlotEnumerator containerSlotEnumerator, SlotFlags flags = SlotFlags.All)
|
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;
|
containerSlotEnumerator = default;
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user