mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-21 00:19:29 +02:00
Store TerrainType by havlue and handle by reference
This commit is contained in:
@ -338,10 +338,10 @@ CGeneralTextHandler::CGeneralTextHandler()
|
||||
{
|
||||
terrainNames[i] = h3mTerrainNames[i];
|
||||
}
|
||||
for(const auto * terrain : VLC->terrainTypeHandler->terrains())
|
||||
for(const auto & terrain : VLC->terrainTypeHandler->terrains())
|
||||
{
|
||||
if(!terrain->terrainText.empty())
|
||||
terrainNames[terrain->id] = terrain->terrainText;
|
||||
if(!terrain.terrainText.empty())
|
||||
terrainNames[terrain.id] = terrain.terrainText;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user