From 2171958fddcb7dbc076800e4c316fdd674e650ea Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Hannes=20J=C3=A4mtner?= <hanja189@student.liu.se>
Date: Thu, 23 Jul 2020 12:42:22 +0200
Subject: [PATCH] Fixed typo

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

diff --git a/src/BuildingPlacer.cpp b/src/BuildingPlacer.cpp
index e5d8533..9638349 100644
--- a/src/BuildingPlacer.cpp
+++ b/src/BuildingPlacer.cpp
@@ -79,7 +79,7 @@ bool BuildingPlacer::canBuildHereWithSpace(int bx, int by, const UnitType & type
     // TODO: recalculate start and end positions for addons
 
     // if this rectangle doesn't fit on the map we can't build here
-    if (startx < 0 || starty < 0 || endx > m_bot.Map().width() || endx < bx + width - xdelta || endy > m_bot.Map().height() || endy < bx + height - ydelta)
+    if (startx < 0 || starty < 0 || endx > m_bot.Map().width() || endx < bx + width - xdelta || endy > m_bot.Map().height() || endy < by + height - ydelta)
     {
         return false;
     }
-- 
GitLab