Replaced insert() by this cleaner way to add entries.
authorRicardo Cruz <rick2@aeiou.pt>
Fri, 6 Aug 2004 17:37:56 +0000 (17:37 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Fri, 6 Aug 2004 17:37:56 +0000 (17:37 +0000)
SVN-Revision: 1717

src/tile_manager.cpp

index 47b4cc2..49336e2 100644 (file)
@@ -80,7 +80,7 @@ void TileManager::load_tileset(std::string filename)
                 continue;
               }*/
 
-              tiles.insert(std::make_pair(tile_id, tile));
+              tiles[tile_id] = tile;
             }
           else if (strcmp(lisp_symbol(lisp_car(element)), "tileset") == 0)
             {