(FileSystemStack.Flush): don't dispose of LastVisitedArc if it currently resides on top of the stack.

This commit is contained in:
morkt 2015-11-21 10:15:54 +04:00
parent b0d06882b2
commit 3c22e9c077

View File

@ -517,7 +517,7 @@ namespace GameRes
public void Flush ()
{
if (LastVisitedArc != null)
if (LastVisitedArc != null && (0 == Count || LastVisitedArc != Top))
{
LastVisitedArc.Dispose();
LastVisitedArc = null;