mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-29 00:41:38 +02:00
patch from KroArtem
This commit is contained in:
@ -58,7 +58,7 @@ int BattleInfo::getAvaliableHex(CreatureID creID, bool attackerOwned, int initia
|
||||
if(accessibility.accessible(i, twoHex, attackerOwned))
|
||||
occupyable.insert(i);
|
||||
|
||||
if (!occupyable.size())
|
||||
if (occupyable.empty())
|
||||
{
|
||||
return BattleHex::INVALID; //all tiles are covered
|
||||
}
|
||||
|
Reference in New Issue
Block a user