C++ and SDL problem
<p>I want to blit surfaces that I've created in two classes. One is called <code>Map</code>, that holds the relevant map vector as well as some other stuff. The other is a <code>Tile</code> class.  There is a problem when I run the program.</p>

<p>I get no errors, and the program runs as it should. Any ideas? It's probably a stupid mistake somewhere.</p>

<pre><code>Map populate

    void map::Populate(map M)
    for(int x=0;x&lt;=19;x++)
    {
        for(int y=0;y&lt;=15;y++)
        {
            int y2 = (y*32);
            int x2 = (y*32);
            Tile T(x2,y2);
            M.AddToMap(&amp;T);
            printf("Added Tile");

Render

    void map::Render(SDL_Surface* screen)
    {
    for(int x=0;x&lt;grid.size();x++)
    {
            printf("test");
            Tile* T = grid[x];
            SDL_Surface* k = T-&gt;GetIcon();
            SDL_Rect dstrect;
            dstrect.x = (screen-&gt;w - k-&gt;w) / 2;
            dstrect.y = (screen-&gt;h - k-&gt;h) / 2;
            SDL_BlitSurface(k, 0, screen, &amp;dstrect);
</code></pre>
