forked from mirror/openmw-tes3mp
Thrown weapon fix (Fixes #2248)
This commit is contained in:
parent
d56906acf7
commit
398fe6e780
1 changed files with 3 additions and 3 deletions
|
@ -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…
Reference in a new issue