mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-29 19:42:53 +02:00
fix crash for bad QVector index
This commit is contained in:
parent
f8cef6631b
commit
661a63bd0c
1 changed files with 1 additions and 1 deletions
|
@ -998,7 +998,7 @@ void ModelEntityRenderer::animate(const TypedEntityPointer& entity) {
|
||||||
|
|
||||||
// in the case where the last frame is greater than the framecount then clamp
|
// 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.
|
// it to the end of the animation until it loops around.
|
||||||
if (animationCurrentFrame < 0 || animationCurrentFrame > frameCount) {
|
if (animationCurrentFrame < 0 || animationCurrentFrame >= frameCount) {
|
||||||
animationCurrentFrame = 0;
|
animationCurrentFrame = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue