use Array.Empty() method.

This commit is contained in:
morkt
2018-04-07 03:06:04 +04:00
parent 9ef70bea72
commit 8e7916556c
2 changed files with 2 additions and 2 deletions

View File

@@ -482,7 +482,7 @@ namespace GameRes
{
m_source = input.GetBuffer();
if (null == m_source)
m_source = new byte[0];
m_source = Array.Empty<byte>();
}
catch (UnauthorizedAccessException)
{