summaryrefslogtreecommitdiff
path: root/rotord
diff options
context:
space:
mode:
authorTim Redfern <tim@herge.(none)>2013-05-09 14:31:16 +0100
committerTim Redfern <tim@herge.(none)>2013-05-09 14:31:16 +0100
commitd807b99b05311df90e9ad3a0f82a450be7b8723c (patch)
tree6e15c09e7f5a3fd493c41a1fe4c772d063e64049 /rotord
parent1090a83969ff6ccf8f6c4d189053e9cafd3b65ed (diff)
making echo trails
Diffstat (limited to 'rotord')
-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;