Index: common/WorldMap.cpp
===================================================================
--- common/WorldMap.cpp	(revision df79cfd232648969b6baacef4ffcf8f810cdf87e)
+++ common/WorldMap.cpp	(revision e4c60ba35ab71c7d35960b98212214ce43dd724c)
@@ -63,4 +63,23 @@
 {
    (*(*vctStructures)[x])[y] = t;
+}
+
+POSITION WorldMap::getStructureLocation(StructureType t)
+{
+   POSITION pos;
+   pos.x = 0;
+   pos.y = 0;
+
+   for (int x=0; x<vctStructures->size(); x++) {
+      for (int y=0; y<(*vctStructures)[x]->size(); y++) {
+        if ((*(*vctStructures)[x])[y] == t) {
+           pos.x = x;
+           pos.y = y;
+           return pos;
+        } 
+      }
+   }
+
+   return pos;
 }
 
Index: common/WorldMap.h
===================================================================
--- common/WorldMap.h	(revision df79cfd232648969b6baacef4ffcf8f810cdf87e)
+++ common/WorldMap.h	(revision e4c60ba35ab71c7d35960b98212214ce43dd724c)
@@ -60,4 +60,5 @@
    StructureType getStructure(int x, int y);
    void setStructure(int x, int y, StructureType type);
+   POSITION getStructureLocation(StructureType type);
 
    vector<Object>* getObjects();
