Explorar o código

Following review

MichalZr6 hai 11 meses
pai
achega
f823b8addf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/mapObjectConstructors/HillFortInstanceConstructor.cpp

+ 1 - 1
lib/mapObjectConstructors/HillFortInstanceConstructor.cpp

@@ -18,7 +18,7 @@ VCMI_LIB_NAMESPACE_BEGIN
 void HillFortInstanceConstructor::initTypeData(const JsonNode & config)
 {
 	parameters = config;
-	if(getModScope() != "core")
+	if(!parameters["unavailableUpgradeMessage"].isNull())
 		VLC->generaltexth->registerString(parameters.getModScope(), TextIdentifier(getBaseTextID(), "unavailableUpgradeMessage"), parameters["unavailableUpgradeMessage"].String());
 	
 	VLC->generaltexth->registerString(parameters.getModScope(), TextIdentifier(getBaseTextID(), "description"), parameters["description"].String());