From ddfd5a117dbbdd131f852e2aa7f5459694279831 Mon Sep 17 00:00:00 2001 From: morkt Date: Tue, 1 Sep 2015 14:14:39 +0400 Subject: [PATCH] (ReadIndex): clear directory index that was possibly partially-filled. --- ArcFormats/Tactics/ArcTactics.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ArcFormats/Tactics/ArcTactics.cs b/ArcFormats/Tactics/ArcTactics.cs index 16faeab3..70089f24 100644 --- a/ArcFormats/Tactics/ArcTactics.cs +++ b/ArcFormats/Tactics/ArcTactics.cs @@ -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;