Thrown weapon fix (Fixes #2248)

openmw-35
scrawl 10 years ago
parent d56906acf7
commit 398fe6e780

@ -68,9 +68,6 @@ void WeaponAnimation::attachArrow(MWWorld::Ptr actor)
void WeaponAnimation::releaseArrow(MWWorld::Ptr actor)
{
if (!mAmmunition.get())
return;
MWWorld::InventoryStore& inv = actor.getClass().getInventoryStore(actor);
MWWorld::ContainerStoreIterator weapon = inv.getSlot(MWWorld::InventoryStore::Slot_CarriedRight);
if (weapon == inv.end())
@ -131,6 +128,9 @@ void WeaponAnimation::releaseArrow(MWWorld::Ptr actor)
if (ammo == inv.end())
return;
if (!mAmmunition.get())
return;
Ogre::Vector3 launchPos(0,0,0);
if (mAmmunition->mSkelBase)
{

Loading…
Cancel
Save