Fix NREs in UpgradeRules.
This commit is contained in:
@@ -100,7 +100,7 @@ namespace OpenRA.Mods.Common.UtilityCommands
|
|||||||
{
|
{
|
||||||
if (node.Key == "Color")
|
if (node.Key == "Color")
|
||||||
{
|
{
|
||||||
if (parent.Key.StartsWith("FixedColorPalette"))
|
if (parent != null && parent.Key.StartsWith("FixedColorPalette"))
|
||||||
TryUpdateHSLColor(ref node.Value.Value);
|
TryUpdateHSLColor(ref node.Value.Value);
|
||||||
else
|
else
|
||||||
TryUpdateColor(ref node.Value.Value);
|
TryUpdateColor(ref node.Value.Value);
|
||||||
@@ -753,7 +753,7 @@ namespace OpenRA.Mods.Common.UtilityCommands
|
|||||||
if (engineVersion < 20160402)
|
if (engineVersion < 20160402)
|
||||||
{
|
{
|
||||||
// Fix misleading property naming.
|
// Fix misleading property naming.
|
||||||
if (node.Key == "EffectSequence" && parent.Key == "SpawnActorPower")
|
if (node.Key == "EffectSequence" && parent != null && parent.Key == "SpawnActorPower")
|
||||||
node.Key = "EffectImage";
|
node.Key = "EffectImage";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user