1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Merge pull request #4475 from MichalZr6/CSpellHandler_allow_lowercase_x

Allow lowercase 'X' in spellRangeInHexes JSON property
This commit is contained in:
Ivan Savenko 2024-08-18 21:51:36 +03:00 committed by GitHub
commit 5b49c7525a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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;