浏览代码

Small fix for rangeInHexes

AlexVinS 11 年之前
父节点
当前提交
22c251b57d
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;