From beb108626023e54a7a95f76db678ad31ad9e30e4 Mon Sep 17 00:00:00 2001 From: scrawl Date: Fri, 26 Jun 2015 04:21:10 +0200 Subject: [PATCH] Fix attackStrength being unset for creatures with no weapons --- apps/openmw/mwmechanics/character.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/openmw/mwmechanics/character.cpp b/apps/openmw/mwmechanics/character.cpp index 16d7387fd..28e19d395 100644 --- a/apps/openmw/mwmechanics/character.cpp +++ b/apps/openmw/mwmechanics/character.cpp @@ -991,6 +991,8 @@ bool CharacterController::updateCreatureState() 1, startKey, stopKey, 0.0f, 0); mUpperBodyState = UpperCharState_StartToMinAttack; + + stats.setAttackStrength(std::min(1.f, 0.1f + Misc::Rng::rollClosedProbability())); } }