Update some obsoletes.

This commit is contained in:
Ottermandias 2025-03-09 23:13:33 +01:00
parent e93c3b7bb8
commit 3dee511b9a
3 changed files with 3 additions and 3 deletions

View file

@ -23,7 +23,7 @@ public unsafe class InventoryPanel : IGameDataDrawer
ImGuiUtil.CopyOnClickSelectable($"0x{(ulong)inventory:X}");
var equip = inventory->GetInventoryContainer(InventoryType.EquippedItems);
if (equip == null || equip->Loaded == 0)
if (equip == null || equip->IsLoaded)
return;
ImGuiUtil.CopyOnClickSelectable($"0x{(ulong)equip:X}");

View file

@ -182,7 +182,7 @@ public sealed unsafe class InventoryService : IDisposable, IRequiredService
// Invoked after calling Original, so the item is already moved.
var inventory = manager->GetInventoryContainer(targetContainer);
if (inventory == null || inventory->Loaded == 0 || inventory->Size <= targetSlot)
if (inventory == null || inventory->IsLoaded || inventory->Size <= targetSlot)
return false;
var item = inventory->GetInventorySlot((int)targetSlot);

View file

@ -168,7 +168,7 @@ public class ItemUnlockManager : ISavable, IDisposable, IReadOnlyDictionary<Item
{
var type = ScannableInventories[_currentInventory];
var container = inventoryManager->GetInventoryContainer(type);
if (container != null && container->Loaded != 0 && _currentInventoryIndex < container->Size)
if (container != null && container->IsLoaded && _currentInventoryIndex < container->Size)
{
Glamourer.Log.Excessive($"[UnlockScanner] Scanning {_currentInventory} {type} {_currentInventoryIndex}/{container->Size}.");
var item = container->GetInventorySlot(_currentInventoryIndex++);