use priority correctly in FileSystem.OpenWithExts

This commit is contained in:
Chris Forbes
2011-12-09 22:16:20 +13:00
parent 69a869a44d
commit 410cad6f1e

View File

@@ -157,7 +157,7 @@ namespace OpenRA.FileFormats
foreach( var ext in exts )
{
foreach( IFolder folder in mountedFolders )
foreach( IFolder folder in mountedFolders.OrderByDescending(x => x.Priority) )
if (folder.Exists(filename + ext))
return folder.GetContent( filename + ext );
}