public static WoWContainer GetBagByIndex(int slot) { if (GetBagAtIndex == null) GetBagAtIndex = Manager.Memory.RegisterDelegate<GetBagAtIndexDelegate>((IntPtr)Pointers.Container.GetBagAtIndex); return Manager.ObjectManager.GetObjectByGuid(GetBagAtIndex(slot)) as WoWContainer; }