From b90064d1593b43d9a1f7d4c4be23fcc114550cae Mon Sep 17 00:00:00 2001 From: WrinklyNinja Date: Mon, 1 Sep 2014 15:44:38 +0100 Subject: [PATCH] Fixed game caches never getting cleared. Closes #273. --- src/gui/handler.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/handler.cpp b/src/gui/handler.cpp index 432d57ac..21b6052a 100644 --- a/src/gui/handler.cpp +++ b/src/gui/handler.cpp @@ -569,6 +569,10 @@ namespace loot { SendProgressUpdate(frame, "Loading plugin headers..."); + // First clear CRC and condition caches, otherwise they could lead to incorrect evaluations. + g_app_state.CurrentGame().conditionCache.clear(); + g_app_state.CurrentGame().crcCache.clear(); + bool isFirstLoad = g_app_state.CurrentGame().plugins.empty(); g_app_state.CurrentGame().LoadPlugins(true);