diff --git a/GameFramework/FileSystem/FileSystem.cs b/GameFramework/FileSystem/FileSystem.cs index f1af2800a..3f591f170 100644 --- a/GameFramework/FileSystem/FileSystem.cs +++ b/GameFramework/FileSystem/FileSystem.cs @@ -838,7 +838,7 @@ public bool WriteFile(string name, byte[] buffer, int startIndex, int length) hasFile = true; } - if (!hasFile && m_FileDatas.Count >= m_HeaderData.MaxFileCount) + if (!hasFile && m_FileDatas.Count > m_HeaderData.MaxFileCount) { return false; } @@ -900,7 +900,7 @@ public bool WriteFile(string name, Stream stream) hasFile = true; } - if (!hasFile && m_FileDatas.Count >= m_HeaderData.MaxFileCount) + if (!hasFile && m_FileDatas.Count > m_HeaderData.MaxFileCount) { return false; }