diff --git a/common/gl/yacreader_flow_gl.cpp b/common/gl/yacreader_flow_gl.cpp index b75cf0b8..b2394f39 100644 --- a/common/gl/yacreader_flow_gl.cpp +++ b/common/gl/yacreader_flow_gl.cpp @@ -712,7 +712,7 @@ void YACReaderFlowGL::remove(int item) QOpenGLTexture *texture = images[item].texture; int count = item; - while (count <= numObjects - 2) { + while (count <= numObjects - 1) { images[count].index--; count++; }