mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
SonarCloud recomendations.
Code review follow-up: - Replace std::vector with boost::small_vector - Rename function merge to insert
This commit is contained in:
@@ -281,7 +281,7 @@ void BattleFieldController::redrawBackgroundWithHexes()
|
||||
if(settings["battle"]["stackRange"].Bool())
|
||||
{
|
||||
BattleHexArray hexesToShade = occupiableHexes;
|
||||
hexesToShade.merge(attackableHexes);
|
||||
hexesToShade.insert(attackableHexes);
|
||||
for(BattleHex hex : hexesToShade)
|
||||
{
|
||||
showHighlightedHex(*backgroundWithHexes, cellShade, hex, false);
|
||||
|
||||
Reference in New Issue
Block a user