diff options
Diffstat (limited to 'src/resources/db/horsedb.cpp')
-rw-r--r-- | src/resources/db/horsedb.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/resources/db/horsedb.cpp b/src/resources/db/horsedb.cpp index c9f363246..a59c18e3f 100644 --- a/src/resources/db/horsedb.cpp +++ b/src/resources/db/horsedb.cpp @@ -61,6 +61,8 @@ void HorseDB::load() if (mLoaded) unload(); + logger->log1("Initializing horse database..."); + SpriteReference *currentSprite = new SpriteReference; currentSprite->sprite = pathJoin(paths.getStringValue("sprites"), paths.getStringValue("spriteErrorFile")); @@ -73,8 +75,6 @@ void HorseDB::load() currentSprite->variant = 0; mUnknown.upSprites.push_back(currentSprite); - logger->log1("Initializing horse database..."); - loadXmlFile(paths.getStringValue("horsesFile"), SkipError_false); loadXmlFile(paths.getStringValue("horsesPatchFile"), SkipError_true); loadXmlDir("horsesPatchDir", loadXmlFile); @@ -264,6 +264,7 @@ static void loadUpSprites(XmlNodePtrConst parentNode, void HorseDB::unload() { + logger->log1("Unloading horse database..."); FOR_EACH (HorseInfos::const_iterator, i, mHorseInfos) { delete_all(i->second->upSprites); |