Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions GameFramework/FileSystem/FileSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down