summaryrefslogtreecommitdiff
path: root/src/resources/db
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/db')
-rw-r--r--src/resources/db/avatardb.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resources/db/avatardb.cpp b/src/resources/db/avatardb.cpp
index 1df47e3ef..b522c6b76 100644
--- a/src/resources/db/avatardb.cpp
+++ b/src/resources/db/avatardb.cpp
@@ -79,7 +79,7 @@ void AvatarDB::loadXmlFile(const std::string &fileName)
BeingInfo *currentInfo = nullptr;
if (mAvatarInfos.find(id) != mAvatarInfos.end())
currentInfo = mAvatarInfos[id];
- else
+ if (!currentInfo)
currentInfo = new BeingInfo;
currentInfo->setName(XML::langProperty(