From a381a15b192ef2b71ec38d5693cd1ec9dda680d5 Mon Sep 17 00:00:00 2001 From: Allofich Date: Sun, 14 Aug 2016 21:52:48 +0900 Subject: [PATCH] Make loopgroup loop correct number of times --- apps/openmw/mwscript/animationextensions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwscript/animationextensions.cpp b/apps/openmw/mwscript/animationextensions.cpp index 44c4612ecf..347bbca56b 100644 --- a/apps/openmw/mwscript/animationextensions.cpp +++ b/apps/openmw/mwscript/animationextensions.cpp @@ -89,7 +89,7 @@ namespace MWScript throw std::runtime_error ("animation mode out of range"); } - MWBase::Environment::get().getMechanicsManager()->playAnimationGroup (ptr, group, mode, loops, true); + MWBase::Environment::get().getMechanicsManager()->playAnimationGroup (ptr, group, mode, loops + 1, true); } };