From 40117f5cf43f574ef41727be69977df864734a35 Mon Sep 17 00:00:00 2001
From: Andrettin <andre.ng@live.com>
Date: Sat, 21 Nov 2015 23:31:37 +0100
Subject: [PATCH] Fix to issue #140

---
 src/unit/build.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/unit/build.cpp b/src/unit/build.cpp
index ddc1c1a3b..3c2cefdd9 100644
--- a/src/unit/build.cpp
+++ b/src/unit/build.cpp
@@ -356,7 +356,7 @@ bool CBuildRestrictionOnTop::Check(const CUnit *builder, const CUnitType &, cons
 	if (it != cache.end() && (*it)->tilePos == pos) {
 		CUnit &found = **it;
 		std::vector<CUnit *> table;
-		Vec2i endPos(found.tilePos.x + found.Type->TileWidth, found.tilePos.y + found.Type->TileHeight);
+		Vec2i endPos(found.tilePos.x + found.Type->TileWidth - 1, found.tilePos.y + found.Type->TileHeight - 1);
 		Select(found.tilePos, endPos, table);
 		for (std::vector<CUnit *>::iterator it2 = table.begin(); it2 != table.end(); ++it2) {
 			if (*it == *it2) {