mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
Store TerrainType by havlue and handle by reference
This commit is contained in:
@ -176,9 +176,9 @@ void CMapHandler::initTerrainGraphics()
|
||||
std::map<std::string, std::string> terrainFiles;
|
||||
std::map<std::string, std::string> riverFiles;
|
||||
std::map<std::string, std::string> roadFiles;
|
||||
for(const auto * terrain : VLC->terrainTypeHandler->terrains())
|
||||
for(const auto & terrain : VLC->terrainTypeHandler->terrains())
|
||||
{
|
||||
terrainFiles[terrain->name] = terrain->tilesFilename;
|
||||
terrainFiles[terrain.name] = terrain.tilesFilename;
|
||||
}
|
||||
for(const auto * river : VLC->terrainTypeHandler->rivers())
|
||||
{
|
||||
|
Reference in New Issue
Block a user