From 661a63bd0ca5d2935c88c32066c538989fda240d Mon Sep 17 00:00:00 2001 From: Andrew Meadows Date: Mon, 18 Dec 2017 11:05:27 -0800 Subject: [PATCH] fix crash for bad QVector index --- libraries/entities-renderer/src/RenderableModelEntityItem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/entities-renderer/src/RenderableModelEntityItem.cpp b/libraries/entities-renderer/src/RenderableModelEntityItem.cpp index e578e4858d..cf555203dc 100644 --- a/libraries/entities-renderer/src/RenderableModelEntityItem.cpp +++ b/libraries/entities-renderer/src/RenderableModelEntityItem.cpp @@ -998,7 +998,7 @@ void ModelEntityRenderer::animate(const TypedEntityPointer& entity) { // in the case where the last frame is greater than the framecount then clamp // it to the end of the animation until it loops around. - if (animationCurrentFrame < 0 || animationCurrentFrame > frameCount) { + if (animationCurrentFrame < 0 || animationCurrentFrame >= frameCount) { animationCurrentFrame = 0; }