mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
* refactoring
This commit is contained in:
@ -527,7 +527,7 @@ void CTownHandler::load(const JsonNode &source)
|
||||
faction.creatureBg120 = node.second["creatureBackground"]["120px"].String();
|
||||
faction.creatureBg130 = node.second["creatureBackground"]["130px"].String();
|
||||
|
||||
faction.nativeTerrain = static_cast<ETerrainType::ETerrainType>(vstd::find_pos(GameConstants::TERRAIN_NAMES,
|
||||
faction.nativeTerrain = ETerrainType(vstd::find_pos(GameConstants::TERRAIN_NAMES,
|
||||
node.second["nativeTerrain"].String()));
|
||||
int alignment = vstd::find_pos(EAlignment::names, node.second["alignment"].String());
|
||||
if (alignment == -1)
|
||||
|
Reference in New Issue
Block a user