Fix a crash in UpdateMapCommand.

This commit is contained in:
Paul Chote
2018-03-30 16:24:02 +01:00
committed by abcdefg30
parent aa5b9401c3
commit 02f769964e

View File

@@ -41,7 +41,7 @@ namespace OpenRA.Mods.Common.UtilityCommands
throw new FileNotFoundException(args[1]);
IEnumerable<UpdateRule> rules = null;
if (args.Length > 1)
if (args.Length > 2)
rules = UpdatePath.FromSource(modData.ObjectCreator, args[2]);
if (rules == null)