summaryrefslogtreecommitdiff
path: root/src/resources/db
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/db')
-rw-r--r--src/resources/db/horsedb.cpp6
-rw-r--r--src/resources/db/horsedb.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/resources/db/horsedb.cpp b/src/resources/db/horsedb.cpp
index 315cd09d0..6da742d3a 100644
--- a/src/resources/db/horsedb.cpp
+++ b/src/resources/db/horsedb.cpp
@@ -98,8 +98,8 @@ void HorseDB::loadXmlFile(const std::string &fileName)
else
currentInfo = new HorseInfo;
- currentInfo->offsetX = XML::getProperty(horseNode, "x", 0);
- currentInfo->offsetY = XML::getProperty(horseNode, "y", 0);
+ currentInfo->offsetX = XML::getProperty(horseNode, "offsetX", 0);
+ currentInfo->offsetY = XML::getProperty(horseNode, "offsetY", 0);
for_each_xml_child_node(spriteNode, horseNode)
{
@@ -134,7 +134,7 @@ void HorseDB::unload()
mLoaded = false;
}
-const HorseInfo *HorseDB::get(const int id, const bool allowNull)
+HorseInfo *HorseDB::get(const int id, const bool allowNull)
{
const HorseInfos::const_iterator i = mHorseInfos.find(id);
diff --git a/src/resources/db/horsedb.h b/src/resources/db/horsedb.h
index 94809c337..93134a9b1 100644
--- a/src/resources/db/horsedb.h
+++ b/src/resources/db/horsedb.h
@@ -46,8 +46,8 @@ namespace HorseDB
void unload();
- const HorseInfo *get(const int id,
- const bool allowNull = false) A_WARN_UNUSED;
+ HorseInfo *get(const int id,
+ const bool allowNull = false) A_WARN_UNUSED;
int size();