mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
fix warning
This commit is contained in:
@@ -422,7 +422,7 @@ static std::string requiredCheck(JsonValidator & validator, const JsonNode & bas
|
||||
std::string errors;
|
||||
for(const auto & required : schema.Vector())
|
||||
{
|
||||
if (data[required.String()].isNull())
|
||||
if (data[required.String()].isNull() && data.getModScope() != "core")
|
||||
errors += validator.makeErrorMessage("Required entry " + required.String() + " is missing");
|
||||
}
|
||||
return errors;
|
||||
|
||||
Reference in New Issue
Block a user