Ver Fonte

Update lib/CTownHandler.cpp

Ivan Savenko há 1 ano atrás
pai
commit
622e4b059b
1 ficheiros alterados com 1 adições e 2 exclusões
  1. 1 2
      lib/CTownHandler.cpp

+ 1 - 2
lib/CTownHandler.cpp

@@ -1068,8 +1068,7 @@ CFaction * CTownHandler::loadFromJson(const std::string & scope, const JsonNode
 	
 	auto preferUndergound = source["preferUndergroundPlacement"];
 	faction->preferUndergroundPlacement = preferUndergound.isNull() ? false : preferUndergound.Bool();
-	auto isSpecial = source["special"];
-	faction->special = isSpecial.isNull() ? false : isSpecial.Bool();
+	faction->special = source["special"].Bool();
 
 	// NOTE: semi-workaround - normally, towns are supposed to have native terrains.
 	// Towns without one are exceptions. So, vcmi requires nativeTerrain to be defined