diff --git a/source/glest_game/world/map.cpp b/source/glest_game/world/map.cpp index a2f29635..702f499e 100644 --- a/source/glest_game/world/map.cpp +++ b/source/glest_game/world/map.cpp @@ -451,8 +451,8 @@ bool Map::isFreeCellsOrHasUnit(const Vec2i &pos, int size, Field field, if(munit == NULL) { throw runtime_error("munit == NULL"); } - for (int i = 1; i <= munit->getSize(); ++i) { - for (int j = 1; j <= munit->getSize(); ++j) { + for(int i=pos.x; i