diff --git a/client/src/app.c b/client/src/app.c index ff425d59..ec1a927d 100644 --- a/client/src/app.c +++ b/client/src/app.c @@ -675,8 +675,9 @@ int app_renderOverlay(struct Rect * rects, int maxRects) } else { - maxRects -= written; - rects += written; + maxRects -= written; + rects += written; + totalRects += written; } }