mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-21 00:19:29 +02:00
First version that compiles
This commit is contained in:
@ -336,12 +336,12 @@ CGeneralTextHandler::CGeneralTextHandler()
|
||||
|
||||
for(int i = 0; i < h3mTerrainNames.size(); ++i)
|
||||
{
|
||||
terrainNames[Terrain::createTerrainTypeH3M(i)] = h3mTerrainNames[i];
|
||||
terrainNames[i] = h3mTerrainNames[i];
|
||||
}
|
||||
for(auto & terrain : VLC->terrainTypeHandler::terrains())
|
||||
for(const auto * terrain : VLC->terrainTypeHandler->terrains())
|
||||
{
|
||||
if(!Terrain::Manager::getInfo(terrain).terrainText.empty())
|
||||
terrainNames[terrain] = Terrain::Manager::getInfo(terrain).terrainText;
|
||||
if(!terrain->terrainText.empty())
|
||||
terrainNames[terrain->id] = terrain->terrainText;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user