// DEBUGPOINT();
// See if that frame is cached
- std::list<std::pair<int,Surface> >::iterator iter;
+ std::list<std::pair<String,Surface> >::iterator iter;
for(iter=frame_cache.begin();iter!=frame_cache.end();++iter)
{
- if(iter->first==frame)
+ if(iter->first==filename_list[frame])
{
// DEBUGPOINT();
surface.mirror(iter->second);
// DEBUGPOINT();
- frame_cache.push_back(std::pair<int,Surface>(frame,surface));
+ frame_cache.push_back(std::pair<String,Surface>(filename_list[frame],surface));
// DEBUGPOINT();
{
float fps;
std::vector<String> filename_list;
- std::list<std::pair<int,Surface> > frame_cache;
+ std::list<std::pair<String,Surface> > frame_cache;
protected:
ListImporter(const String &filename);