summaryrefslogtreecommitdiff
path: root/src/resources/db/petdb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/db/petdb.cpp')
-rw-r--r--src/resources/db/petdb.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/resources/db/petdb.cpp b/src/resources/db/petdb.cpp
index 631dceb60..f975c25f9 100644
--- a/src/resources/db/petdb.cpp
+++ b/src/resources/db/petdb.cpp
@@ -22,13 +22,14 @@
#include "resources/db/petdb.h"
+#include "configuration.h"
#include "logger.h"
#include "resources/beingcommon.h"
#include "resources/beinginfo.h"
+#include "utils/gettext.h"
#include "utils/dtor.h"
-#include "configuration.h"
#include "debug.h"
@@ -74,8 +75,12 @@ void PETDB::load()
BeingInfo *const currentInfo = new BeingInfo;
+ currentInfo->setName(XML::langProperty(petNode,
+ // TRANSLATORS: unknown info name
+ "name", _("pet")));
+
currentInfo->setTargetSelection(XML::getBoolProperty(petNode,
- "targetSelection", false));
+ "targetSelection", true));
BeingCommon::readBasicAttributes(currentInfo, petNode, "talk");