Possible Bug with multiple shootable weapons - no ammo type defined

adampliska

New member
Hey there, I noticed that if I have two shootable weapons, and neither uses ammo, the script crashes in ShootableWeapon.CheckForSharedConsumableItemTypes. It seems that in C# two nulls are equal to each other. (https://stackoverflow.com/questions...perations-why-does-null-null-resolve-as-false)

Night be good to add a jump out of that method if the current shootable weapon doesn't have ammo, regardless of if the passed in weapons do. I'll be playing around with changing that on my end to see if it works.

- Adam
 
Top