(ReadIndex): clear directory index that was possibly partially-filled.

This commit is contained in:
morkt 2015-09-01 14:14:39 +04:00
parent a149cab7e6
commit ddfd5a117d

View File

@ -129,6 +129,8 @@ namespace GameRes.Formats.Tactics
}
catch { /* ignore V0 parse errors, try V1 */ }
if (m_dir.IsValueCreated)
m_dir.Value.Clear();
input.Position = 0;
if (ReadV1 (input))
return m_dir.Value;