Browse Source

Fixed #1112/#1114.

Michał W. Urbańczyk 13 years ago
parent
commit
49c5f70551
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lib/CBattleCallback.cpp

+ 2 - 1
lib/CBattleCallback.cpp

@@ -1106,7 +1106,8 @@ AccessibilityInfo CBattleInfoCallback::getAccesibility(const std::vector<BattleH
 {
 	auto ret = getAccesibility();
 	BOOST_FOREACH(auto hex, accessibleHexes)
-		ret[hex] = EAccessibility::ACCESSIBLE;
+		if(hex.isValid())
+			ret[hex] = EAccessibility::ACCESSIBLE;
 
 	return ret;
 }