summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/resources/db/horsedb.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/resources/db/horsedb.cpp b/src/resources/db/horsedb.cpp
index 081a12c6f..0784a1e75 100644
--- a/src/resources/db/horsedb.cpp
+++ b/src/resources/db/horsedb.cpp
@@ -131,16 +131,14 @@ void HorseDB::loadXmlFile(const std::string &fileName,
if (!currentInfo)
continue;
- const int offsetX = XML::getProperty(horseNode, "offsetX", 0);
- const int offsetY = XML::getProperty(horseNode, "offsetY", 0);
currentInfo->upOffsetX = XML::getProperty(horseNode,
- "upOffsetX", offsetX);
+ "upOffsetX", 0);
currentInfo->upOffsetY = XML::getProperty(horseNode,
- "upOffsetY", offsetY);
+ "upOffsetY", 0);
currentInfo->downOffsetX = XML::getProperty(horseNode,
- "downOffsetX", offsetX);
+ "downOffsetX", 0);
currentInfo->downOffsetY = XML::getProperty(horseNode,
- "downOffsetY", offsetY);
+ "downOffsetY", 0);
currentInfo->riderOffsetX = XML::getProperty(horseNode,
"riderOffsetX", 0);
currentInfo->riderOffsetY = XML::getProperty(horseNode,