Fix NRE when updating actors with inline comments.
This commit is contained in:
@@ -281,6 +281,9 @@ namespace OpenRA.Mods.Common.UpdateRules
|
||||
/// <summary>Returns true if the node is of the form <match> or <match>@arbitrary</summary>
|
||||
public static bool KeyMatches(this MiniYamlNode node, string match)
|
||||
{
|
||||
if (node.Key == null)
|
||||
return false;
|
||||
|
||||
if (node.Key == match)
|
||||
return true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user