From f823b8addfa97666ad211044f9b964c52c52fee3 Mon Sep 17 00:00:00 2001 From: MichalZr6 Date: Tue, 19 Nov 2024 10:57:20 +0100 Subject: [PATCH] Following review --- lib/mapObjectConstructors/HillFortInstanceConstructor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mapObjectConstructors/HillFortInstanceConstructor.cpp b/lib/mapObjectConstructors/HillFortInstanceConstructor.cpp index 5fdaf76c0..889868b0a 100644 --- a/lib/mapObjectConstructors/HillFortInstanceConstructor.cpp +++ b/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());