summaryrefslogtreecommitdiff
path: root/src/resources/equipmentdb.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2006-12-23 18:01:01 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2006-12-23 18:01:01 +0000
commit1e6f5283eceff138873ec54159ad8f716ed39b45 (patch)
tree94b13a2ffa13a8980af177f38dd82a0b8d778d8b /src/resources/equipmentdb.cpp
parente50461677bf9f456cb912f5d318a769c3f4724ea (diff)
downloadmana-client-1e6f5283eceff138873ec54159ad8f716ed39b45.tar.gz
mana-client-1e6f5283eceff138873ec54159ad8f716ed39b45.tar.bz2
mana-client-1e6f5283eceff138873ec54159ad8f716ed39b45.tar.xz
mana-client-1e6f5283eceff138873ec54159ad8f716ed39b45.zip
Load the databases at the start of the LOGIN state, after the updates are
loaded.
Diffstat (limited to 'src/resources/equipmentdb.cpp')
-rw-r--r--src/resources/equipmentdb.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/resources/equipmentdb.cpp b/src/resources/equipmentdb.cpp
index 78ae3b6a..52a9fbd3 100644
--- a/src/resources/equipmentdb.cpp
+++ b/src/resources/equipmentdb.cpp
@@ -40,6 +40,9 @@ namespace
void
EquipmentDB::load()
{
+ if (mLoaded)
+ return;
+
logger->log("Initializing equipment database...");
mUnknown.setSprite("error.xml", 0);
mUnknown.setSprite("error.xml", 1);