Fix VCMP campaign detection for buttons

This commit is contained in:
George King authored and GitHub committed 2025-02-01 09:59:01 +01:00
1 parent 070dcecde6
commit fc87e903fe
1 file changed
+1 -1
+1 -1
View File
@@ -290,7 +290,7 @@ CMenuEntry::CMenuEntry(CMenuScreen * parent, const JsonNode & config)
for (const auto& item : campaign["items"].Vector()) {
std::string filename = item["file"].String();
if (CResourceHandler::get()->existsResource(ResourcePath(filename + ".h3c"))) {
if (CResourceHandler::get()->existsResource(ResourcePath(filename, EResType::CAMPAIGN))) {
fileExists = true;
break;
}