Closed Skwizzy closed 1 year ago
This seems to be coming from the check to see if an item is a Weapon. Items like bullets and flare guns are considered weapons and causes errors in the weapon equip logic
Added an additional check to not equip flare guns and checking item Template class (WeaponTemplate) instead of item class (Weapon)
Solarint said he saw this issue again, will need to reproduce before reopening
Solarint has reported seeing the following exception when a container is looted:
[Error :LootingBots] System.NullReferenceException: Object reference not set to an instance of an object at GClass2411.GetRootItem (EFT.InventoryLogic.ItemAddress itemAddress) [0x00008] in <a751280e1c2f49a499ea8f5770107520>:0 at LootingBots.Patch.Util.TransactionController+<moveItem>d__10.MoveNext () [0x0005a] in <df22bb14a7f44123b146a499e7d901b4>:0
Not exactly sure the recreate steps and this seems like an exception that is vary rarely seen, perhaps just need some extra null checks around RootItem