diff options
Diffstat (limited to 'src/resources/avatardb.cpp')
-rw-r--r-- | src/resources/avatardb.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/resources/avatardb.cpp b/src/resources/avatardb.cpp index 39b1184fb..d610a14dc 100644 --- a/src/resources/avatardb.cpp +++ b/src/resources/avatardb.cpp @@ -46,12 +46,13 @@ void AvatarDB::load() if (mLoaded) unload(); - XML::Document doc("avatars.xml"); + XML::Document doc(paths.getStringValue("avatarsFile")); const XmlNodePtr rootNode = doc.rootNode(); if (!rootNode || !xmlNameEqual(rootNode, "avatars")) { - logger->log1("Avatars Database: Error while loading avatars.xml!"); + logger->log("Avatars Database: Error while loading %s!", + paths.getStringValue("avatarsFile").c_str()); mLoaded = true; return; } |