carxt / JohnnyGuitarNVSE

JohnnyGuitar is a library extending NVSE's functionality. Please check the README provided for more information.
GNU Lesser General Public License v2.1
55 stars 9 forks source link

Fix GetAmmoEffectsList assuming the equipped weapon ammo is a TESAmmo #36

Closed lStewieAl closed 1 year ago

lStewieAl commented 1 year ago

The Rock-It-Launcher returns a TESObjectMISC for the ammo in TESObjectWEAP::GetEquippedAmmo - JIP handles this but there a few code paths which directly grab the equipped ammo instead of calling the hooked function.

The fix ensures null is returned for the ammo effects list of non-ammo forms.

carxt commented 1 year ago

merged