mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 03:40:14 +00:00
Another invalid iterator fix
This commit is contained in:
parent
1a98f8ca93
commit
f8f4d2dfdb
@ -777,7 +777,8 @@ void getMinMaxAttackDuration(const MWWorld::Ptr& actor, float (*fMinMaxDurations
|
|||||||
|
|
||||||
float weapSpeed;
|
float weapSpeed;
|
||||||
if (weaptype != MWMechanics::WeapType_HandToHand
|
if (weaptype != MWMechanics::WeapType_HandToHand
|
||||||
&& weaptype != MWMechanics::WeapType_Spell)
|
&& weaptype != MWMechanics::WeapType_Spell
|
||||||
|
&& weaptype != MWMechanics::WeapType_None)
|
||||||
{
|
{
|
||||||
weapon = weaponSlot->get<ESM::Weapon>()->mBase;
|
weapon = weaponSlot->get<ESM::Weapon>()->mBase;
|
||||||
weapSpeed = weapon->mData.mSpeed;
|
weapSpeed = weapon->mData.mSpeed;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user