Fix utility commands being unable to open oramaps.

This commit is contained in:
Paul Chote
2016-07-09 00:30:04 +01:00
parent 196dd04b5d
commit 4e32610056
4 changed files with 6 additions and 4 deletions

View File

@@ -1,6 +1,7 @@
using System;
using System.IO;
using System.Linq;
using OpenRA.FileSystem;
namespace OpenRA.Mods.Common.UtilityCommands
{
@@ -27,7 +28,7 @@ namespace OpenRA.Mods.Common.UtilityCommands
try
{
mapPath = args[2];
map = new Map(modData, modData.ModFiles.OpenPackage(mapPath));
map = new Map(modData, modData.ModFiles.OpenPackage(mapPath, new Folder(".")));
}
catch (InvalidDataException)
{