1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-20 00:22:54 +02:00

- WeightedRule optimization - part 1

- comments, style
This commit is contained in:
DjWarmonger
2016-08-11 07:49:08 +02:00
parent 25fd4d85e2
commit 2410f0af61
4 changed files with 15 additions and 18 deletions

View File

@@ -350,7 +350,7 @@ ui32 ObjectTemplate::getWidth() const
//TODO: Use 2D array
//TODO: better precalculate and store constant value
ui32 ret = 0;
for (auto const &row : usedTiles) //copy is expensive
for (const auto &row : usedTiles) //copy is expensive
{
ret = std::max<ui32>(ret, row.size());
}