1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-19 21:10:12 +02:00

Merge pull request #5361 from GeorgeK1ng/menu_campaign_fix

Fix VCMP campaign detection for buttons
This commit is contained in:
Ivan Savenko 2025-02-02 14:10:12 +02:00 committed by GitHub
commit ec5d4dbe5d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -277,7 +277,7 @@ CMenuEntry::CMenuEntry(CMenuScreen * parent, const JsonNode & config)
for (const auto& item : campaign["items"].Vector()) { for (const auto& item : campaign["items"].Vector()) {
std::string filename = item["file"].String(); std::string filename = item["file"].String();
if (CResourceHandler::get()->existsResource(ResourcePath(filename + ".h3c"))) { if (CResourceHandler::get()->existsResource(ResourcePath(filename, EResType::CAMPAIGN))) {
fileExists = true; fileExists = true;
break; break;
} }