2
0
MichalZr6 11 сар өмнө
parent
commit
f823b8addf

+ 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());