mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
lib now uses shared_ptr for entities. Removed manual memory management.
This commit is contained in:
@@ -176,7 +176,7 @@ void ZoneOptions::setTerrainTypes(const std::set<TerrainId> & value)
|
||||
std::set<TerrainId> ZoneOptions::getDefaultTerrainTypes() const
|
||||
{
|
||||
std::set<TerrainId> terrains;
|
||||
for (auto terrain : VLC->terrainTypeHandler->objects)
|
||||
for(const auto & terrain : VLC->terrainTypeHandler->objects)
|
||||
{
|
||||
if (terrain->isLand() && terrain->isPassable())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user