Fix NRE when updating actors with inline comments.

This commit is contained in:
Paul Chote
2018-05-20 15:45:51 +01:00
committed by abcdefg30
parent dbf6937062
commit a9fa9ee741

View File

@@ -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;