From f8f4d2dfdb37b01f33624ca48cdb0c23744bdbf7 Mon Sep 17 00:00:00 2001 From: scrawl Date: Thu, 28 Aug 2014 02:14:30 +0200 Subject: [PATCH] Another invalid iterator fix --- apps/openmw/mwmechanics/aicombat.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/openmw/mwmechanics/aicombat.cpp b/apps/openmw/mwmechanics/aicombat.cpp index a51049e85..4d9e0571a 100644 --- a/apps/openmw/mwmechanics/aicombat.cpp +++ b/apps/openmw/mwmechanics/aicombat.cpp @@ -777,7 +777,8 @@ void getMinMaxAttackDuration(const MWWorld::Ptr& actor, float (*fMinMaxDurations float weapSpeed; if (weaptype != MWMechanics::WeapType_HandToHand - && weaptype != MWMechanics::WeapType_Spell) + && weaptype != MWMechanics::WeapType_Spell + && weaptype != MWMechanics::WeapType_None) { weapon = weaponSlot->get()->mBase; weapSpeed = weapon->mData.mSpeed;