summaryrefslogtreecommitdiff
path: root/src/resources/db
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-05 20:14:53 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-05 20:14:53 +0300
commit510bd78b8e6d3309c88ba772e4e1526da2b2a8c9 (patch)
treecc91a7f8acfe8b2cfb03e9e081398274df6ab746 /src/resources/db
parent66c691cebe91764fb36f513848fdc0ddfc3e12b6 (diff)
downloadmanaplus-510bd78b8e6d3309c88ba772e4e1526da2b2a8c9.tar.gz
manaplus-510bd78b8e6d3309c88ba772e4e1526da2b2a8c9.tar.bz2
manaplus-510bd78b8e6d3309c88ba772e4e1526da2b2a8c9.tar.xz
manaplus-510bd78b8e6d3309c88ba772e4e1526da2b2a8c9.zip
Clean statdb on unload.
Diffstat (limited to 'src/resources/db')
-rw-r--r--src/resources/db/statdb.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resources/db/statdb.cpp b/src/resources/db/statdb.cpp
index 728b509a6..0c1cd7e93 100644
--- a/src/resources/db/statdb.cpp
+++ b/src/resources/db/statdb.cpp
@@ -183,5 +183,7 @@ void StatDb::unload()
{
logger->log1("Unloading stat database...");
+ mBasicStats.clear();
+ mExtendedStats.clear();
mLoaded = false;
}