mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-01 03:45:35 +00:00
Merge pull request #1139 from MiroslavR/thrown-ench
Fix thrown weapon sources being used to apply on strike enchantments
This commit is contained in:
commit
42b1163504
1 changed files with 1 additions and 1 deletions
|
@ -369,7 +369,7 @@ namespace MWWorld
|
||||||
|
|
||||||
// Try to get a Ptr to the bow that was used. It might no longer exist.
|
// Try to get a Ptr to the bow that was used. It might no longer exist.
|
||||||
MWWorld::Ptr bow = projectileRef.getPtr();
|
MWWorld::Ptr bow = projectileRef.getPtr();
|
||||||
if (!caster.isEmpty())
|
if (!caster.isEmpty() && it->mIdArrow != it->mBowId)
|
||||||
{
|
{
|
||||||
MWWorld::InventoryStore& inv = caster.getClass().getInventoryStore(caster);
|
MWWorld::InventoryStore& inv = caster.getClass().getInventoryStore(caster);
|
||||||
MWWorld::ContainerStoreIterator invIt = inv.getSlot(MWWorld::InventoryStore::Slot_CarriedRight);
|
MWWorld::ContainerStoreIterator invIt = inv.getSlot(MWWorld::InventoryStore::Slot_CarriedRight);
|
||||||
|
|
Loading…
Reference in a new issue