Fixed game caches never getting cleared.

Closes #273.
This commit is contained in:
WrinklyNinja
2014-09-01 15:44:38 +01:00
parent c162b61056
commit b90064d159
+4
View File
@@ -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);