From d807b99b05311df90e9ad3a0f82a450be7b8723c Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Thu, 9 May 2013 14:31:16 +0100 Subject: making echo trails --- rotord/rotor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rotord/rotor.h') 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; -- cgit v1.2.3