diff options
Diffstat (limited to 'src/resources/db/avatardb.cpp')
-rw-r--r-- | src/resources/db/avatardb.cpp | 2 |
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( |