diff --git a/Assets/PerfectWorld/Scripts/Managers/EC_InventoryUI.cs b/Assets/PerfectWorld/Scripts/Managers/EC_InventoryUI.cs index 9a7b008637..bba85771e0 100644 --- a/Assets/PerfectWorld/Scripts/Managers/EC_InventoryUI.cs +++ b/Assets/PerfectWorld/Scripts/Managers/EC_InventoryUI.cs @@ -18,7 +18,7 @@ using UnityEngine.UI; namespace BrewMonster.Scripts.Managers { - public class EC_InventoryUI : MonoBehaviour, IRefreshLayout + public class EC_InventoryUI : AUIDialog, IRefreshLayout { [Header("Pack Buttons (assign in Inspector)")] diff --git a/Assets/PerfectWorld/Scripts/UI/Dialogs/DlgPetHatch.cs b/Assets/PerfectWorld/Scripts/UI/Dialogs/DlgPetHatch.cs index 32eec2e3e5..764f13fcc1 100644 --- a/Assets/PerfectWorld/Scripts/UI/Dialogs/DlgPetHatch.cs +++ b/Assets/PerfectWorld/Scripts/UI/Dialogs/DlgPetHatch.cs @@ -533,7 +533,7 @@ namespace BrewMonster.UI SetDataPtr(null, ""); GetGameUIMan().EndNPCService(); Show(false); - GetGameUIMan().GetDialog("Win_Inventory").Show(false); + GetGameUIMan().GetDialog("Win_Inventory")?.Show(false); GetHostPlayer().GetPack(Inventory_type.IVTRTYPE_PACK).UnfreezeAllItems(); } }