1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 08:53:52 +00:00

Merge pull request #2563 from akortunov/ammofix

Fix OnStrike bows charges
This commit is contained in:
Alexei Dobrohotov 2019-10-20 11:25:12 +03:00 committed by GitHub
commit 85a5355e5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -830,7 +830,7 @@ namespace MWMechanics
{ {
int type = item.get<ESM::Weapon>()->mBase->mData.mType; int type = item.get<ESM::Weapon>()->mBase->mData.mType;
ESM::WeaponType::Class weapclass = MWMechanics::getWeaponType(type)->mWeaponClass; ESM::WeaponType::Class weapclass = MWMechanics::getWeaponType(type)->mWeaponClass;
isProjectile = (weapclass == ESM::WeaponType::Thrown || weapclass == ESM::WeaponType::Ranged); isProjectile = (weapclass == ESM::WeaponType::Thrown || weapclass == ESM::WeaponType::Ammo);
} }
int type = enchantment->mData.mType; int type = enchantment->mData.mType;