mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01: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
|
||||
// it to the end of the animation until it loops around.
|
||||
if (animationCurrentFrame < 0 || animationCurrentFrame > frameCount) {
|
||||
if (animationCurrentFrame < 0 || animationCurrentFrame >= frameCount) {
|
||||
animationCurrentFrame = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue