1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-19 21:10:12 +02:00

allow lowercase 'X' in spellRangeInHexes

This commit is contained in:
MichalZr6 2024-08-17 01:20:50 +02:00
parent 11ac768599
commit e7b94014e1

View File

@ -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;