mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-25 21:38:59 +02:00
Refactor for previous fix in CSpellHandler
This commit is contained in:
parent
5684db1953
commit
0d5a9b8e3b
@ -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' && rng[0] != 'x') //there is at least one hex in range (+artificial comma)
|
||||
if(rng.size() >= 2 && std::tolower(rng[0]) != 'x') //there is at least one hex in range (+artificial comma)
|
||||
{
|
||||
std::string number1;
|
||||
std::string number2;
|
||||
|
Loading…
x
Reference in New Issue
Block a user