From d81d81d8d0d95f9188620178b0f0e0bba25597bc Mon Sep 17 00:00:00 2001
From: Tim Felgentreff <timfelgentreff@gmail.com>
Date: Sun, 29 Nov 2020 08:14:41 +0100
Subject: [PATCH] Remove incorrect assertion. Fixes #202

---
 src/unit/unit_find.cpp | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/unit/unit_find.cpp b/src/unit/unit_find.cpp
index ef1596416..3781da880 100644
--- a/src/unit/unit_find.cpp
+++ b/src/unit/unit_find.cpp
@@ -952,7 +952,6 @@ public:
 			// cost map is relative to attacker position
 			const int x = dest->tilePos.x - attacker->tilePos.x + (size / 2);
 			const int y = dest->tilePos.y - attacker->tilePos.y + (size / 2);
-			Assert(x >= 0 && y >= 0);
 
 			// Mark the good/bad array...
 			for (int yy = 0; yy < dtype.TileHeight; ++yy) {
@@ -1041,7 +1040,6 @@ private:
 		// cost map is relative to attacker position
 		x = dest->tilePos.x - attacker->tilePos.x + (size / 2);
 		y = dest->tilePos.y - attacker->tilePos.y + (size / 2);
-		Assert(x >= 0 && y >= 0);
 
 		// calculate the costs:
 		// costs are the full costs at the target and the splash-factor