瀏覽代碼

Following review

MichalZr6 1 年之前
父節點
當前提交
f823b8addf
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)
 void HillFortInstanceConstructor::initTypeData(const JsonNode & config)
 {
 {
 	parameters = 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(), "unavailableUpgradeMessage"), parameters["unavailableUpgradeMessage"].String());
 	
 	
 	VLC->generaltexth->registerString(parameters.getModScope(), TextIdentifier(getBaseTextID(), "description"), parameters["description"].String());
 	VLC->generaltexth->registerString(parameters.getModScope(), TextIdentifier(getBaseTextID(), "description"), parameters["description"].String());