summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrotord/rotor.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/rotord/rotor.h b/rotord/rotor.h
index 7e623b2..f06af2c 100755
--- a/rotord/rotor.h
+++ b/rotord/rotor.h
@@ -613,11 +613,11 @@ namespace Rotor {
total=interval*number;
}
int thisframe=frame.frame();
- //reorder cache and throw out any obsolete frames
+ //iterate cache and throw out any obsolete frames
auto i = std::begin(images);
while (i != std::end(images)) {
// check if the image is in the range we need
- if (thisframe-i.first>total||thisframe-i.first<0)
+ if (thisframe-(*i).first>total||thisframe-(*i).first<0)
i = images.erase(i);
else
++i;