Browse Source

Small fix for rangeInHexes

AlexVinS 11 years ago
parent
commit
22c251b57d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/SpellMechanics.cpp

+ 1 - 1
lib/SpellMechanics.cpp

@@ -146,7 +146,7 @@ std::vector<BattleHex> DefaultSpellMechanics::rangeInHexes(BattleHex centralHex,
 	std::vector<BattleHex> ret;
 	std::string rng = owner->getLevelInfo(schoolLvl).range + ','; //copy + artificial comma for easier handling
 
-	if(rng.size() >= 1 && rng[0] != 'X') //there is at lest one hex in range
+	if(rng.size() >= 2 && rng[0] != 'X') //there is at lest one hex in range (+artificial comma)
 	{
 		std::string number1, number2;
 		int beg, end;