1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-10 22:31:40 +02:00

Fix VCMP campaign detection for buttons

This commit is contained in:
George King
2025-02-01 09:57:11 +01:00
committed by GitHub
parent 6d2e536e16
commit 5b579f6912

View File

@@ -278,7 +278,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;
} }