Quote Originally Posted by ZuK
I do nor see the problem with your code but you do not have to set the iterator to end, just break the loop
Code:
   for(; it != camera_tiles.end(); ++it)
    {
      if(SDL_Tools::mouse_over_rect(mouse, (*it)->Get_Position()))
      { // Changed tile pen.
        tile_pen = *(*it);
        break;
      }
    }
Kurt
Generally I do use break, but sometimes I try and make use of the loop condition. If I can't resolve this then I'll just use break but I'm interested to know why this is happening.