diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-12-23 18:01:01 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-12-23 18:01:01 +0000 |
commit | 1e6f5283eceff138873ec54159ad8f716ed39b45 (patch) | |
tree | 94b13a2ffa13a8980af177f38dd82a0b8d778d8b /src/resources/equipmentdb.cpp | |
parent | e50461677bf9f456cb912f5d318a769c3f4724ea (diff) | |
download | mana-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.cpp | 3 |
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);
|