From 00b5f46154b0ccaa0a5f9280e5e50726821badce Mon Sep 17 00:00:00 2001 From: fgenesis Date: Wed, 23 Apr 2014 05:20:47 +0200 Subject: [PATCH] Unload mod archives when exiting a mod - so that the file doesn't stay open --- Aquaria/Mod.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Aquaria/Mod.cpp b/Aquaria/Mod.cpp index cf21efd..1130def 100644 --- a/Aquaria/Mod.cpp +++ b/Aquaria/Mod.cpp @@ -276,6 +276,8 @@ void Mod::setActive(bool a) { if (!active) { + dsq->unloadMods(); + mapRevealMethod = REVEAL_UNSPECIFIED; setLocalisationModPath(""); name = path = "";