Index: client/Client/main.cpp
===================================================================
--- client/Client/main.cpp	(revision 05051c79f4e2f5fbd7fbf9a5f393d05aa8da0f65)
+++ client/Client/main.cpp	(revision cc1c6c1a585fe5317ec50eae4932e2cc3d18ca99)
@@ -535,5 +535,5 @@
       {
          WorldMap::TerrainType el = gameMap->getElement(x, y);
-         WorldMap::ObjectType obj = gameMap->getObject(x, y);
+         WorldMap::StructureType structure = gameMap->getStructure(x, y);
 
          if (el == WorldMap::TERRAIN_GRASS)
@@ -544,7 +544,7 @@
             al_draw_filled_rectangle(x*25+mapPos.x, y*25+mapPos.y, x*25+25+mapPos.x, y*25+25+mapPos.y, al_map_rgb(100, 100, 0));
 
-         if (obj == WorldMap::OBJECT_BLUE_FLAG)
+         if (structure == WorldMap::STRUCTURE_BLUE_FLAG)
             al_draw_filled_rectangle(x*25+5+mapPos.x, y*25+5+mapPos.y, x*25+20+mapPos.x, y*25+20+mapPos.y, al_map_rgb(0, 0, 255));
-         else if (obj == WorldMap::OBJECT_RED_FLAG)
+         else if (structure == WorldMap::STRUCTURE_RED_FLAG)
             al_draw_filled_rectangle(x*25+5+mapPos.x, y*25+5+mapPos.y, x*25+20+mapPos.x, y*25+20+mapPos.y, al_map_rgb(255, 0, 0));
       }
