浏览代码

Merge pull request #4475 from MichalZr6/CSpellHandler_allow_lowercase_x

Allow lowercase 'X' in spellRangeInHexes JSON property
Ivan Savenko 1 年之前
父节点
当前提交
5b49c7525a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/spells/CSpellHandler.cpp

+ 1 - 1
lib/spells/CSpellHandler.cpp

@@ -687,7 +687,7 @@ std::vector<int> CSpellHandler::spellRangeInHexes(std::string input) const
 	std::set<BattleHex> ret;
 	std::string rng = input + ','; //copy + artificial comma for easier handling
 
-	if(rng.size() >= 2 && rng[0] != 'X') //there is at least one hex in range (+artificial comma)
+	if(rng.size() >= 2 && rng[0] != 'X' && rng[0] != 'x') //there is at least one hex in range (+artificial comma)
 	{
 		std::string number1;
 		std::string number2;