Fix "Inherits" nodes being resolved as objects during linting
This commit is contained in:
@@ -64,9 +64,11 @@ namespace OpenRA.Mods.Common.Lint
|
|||||||
var traitName = NormalizeName(t.Key);
|
var traitName = NormalizeName(t.Key);
|
||||||
|
|
||||||
// Inherits can never define children
|
// Inherits can never define children
|
||||||
if (traitName == "Inherits" && t.Value.Nodes.Count > 0)
|
if (traitName == "Inherits")
|
||||||
{
|
{
|
||||||
|
if (t.Value.Nodes.Count > 0)
|
||||||
emitError($"{t.Location} defines child nodes, which are not valid for Inherits.");
|
emitError($"{t.Location} defines child nodes, which are not valid for Inherits.");
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user