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:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user