diff options
author | Jared Adams <jaxad0127@gmail.com> | 2010-06-03 14:12:42 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-06-03 14:23:08 -0600 |
commit | 8615f1bbad630602009c04a317cd83e03aaa620c (patch) | |
tree | 6f1aaade0f9d745536ec1bda73314cb0841a89e4 /src/resources/colordb.cpp | |
parent | 24802c19b0c3ee287898a81a0257d27843d5d09d (diff) | |
download | mana-client-8615f1bbad630602009c04a317cd83e03aaa620c.tar.gz mana-client-8615f1bbad630602009c04a317cd83e03aaa620c.tar.bz2 mana-client-8615f1bbad630602009c04a317cd83e03aaa620c.tar.xz mana-client-8615f1bbad630602009c04a317cd83e03aaa620c.zip |
Unload loaded DBs before loading them again
This greatly simplifies handling DBs when changing states. No more
need to manage unloading in Client (except when exiting).
Reviewed-by: Thorbjørn Lindeijer
Diffstat (limited to 'src/resources/colordb.cpp')
-rw-r--r-- | src/resources/colordb.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resources/colordb.cpp b/src/resources/colordb.cpp index 0041cee4..c35a5660 100644 --- a/src/resources/colordb.cpp +++ b/src/resources/colordb.cpp @@ -36,7 +36,7 @@ namespace void ColorDB::load() { if (mLoaded) - return; + unload(); XML::Document *doc = new XML::Document("hair.xml"); xmlNodePtr root = doc->rootNode(); |