From e1b78c482119e961cb9352802bafc2a73f14233f Mon Sep 17 00:00:00 2001 From: Dean Simmons Date: Sun, 22 Jan 2023 11:48:12 +0000 Subject: [PATCH] Only return file paths when returning zip contents --- OpenRA.Game/FileSystem/ZipFile.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenRA.Game/FileSystem/ZipFile.cs b/OpenRA.Game/FileSystem/ZipFile.cs index a1db5c1604..aef7cdee3c 100644 --- a/OpenRA.Game/FileSystem/ZipFile.cs +++ b/OpenRA.Game/FileSystem/ZipFile.cs @@ -55,7 +55,8 @@ namespace OpenRA.FileSystem get { foreach (ZipEntry entry in pkg) - yield return entry.Name; + if (entry.IsFile) + yield return entry.Name; } }