summaryrefslogtreecommitdiff
path: root/library/VersionInfoFactory.cpp
diff options
context:
space:
mode:
authorPetr Mrázek2012-02-09 03:07:26 +0100
committerPetr Mrázek2012-02-09 03:07:26 +0100
commit8f680dcf9482748b4a9ddaf3601c1a656622a994 (patch)
tree6fe46b31f3a11bd3f27d48eef55f9f8cf72b705e /library/VersionInfoFactory.cpp
parentf7d8635be1dd00871e60c6adc388ac2cd865dd4b (diff)
downloaddfhack-8f680dcf9482748b4a9ddaf3601c1a656622a994.tar.gz
dfhack-8f680dcf9482748b4a9ddaf3601c1a656622a994.tar.bz2
dfhack-8f680dcf9482748b4a9ddaf3601c1a656622a994.tar.xz
Make it build and run on linux (no stonesense, df2mc, dfusion)
Diffstat (limited to 'library/VersionInfoFactory.cpp')
-rw-r--r--library/VersionInfoFactory.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/VersionInfoFactory.cpp b/library/VersionInfoFactory.cpp
index c5ed7f14..c6914583 100644
--- a/library/VersionInfoFactory.cpp
+++ b/library/VersionInfoFactory.cpp
@@ -120,7 +120,7 @@ void VersionInfoFactory::ParseVersion (TiXmlElement* entry, VersionInfo* mem)
type = cstr_type;
if(type == "Address")
{
- const char *cstr_key = currentElem->Attribute("name");
+ const char *cstr_key = pMemEntry->Attribute("key");
if(!cstr_key)
throw Error::MemoryXmlUnderspecifiedEntry(cstr_key);
const char *cstr_value = pMemEntry->Attribute("value");
@@ -188,7 +188,7 @@ bool VersionInfoFactory::loadFile(string path_to_xml)
{
clear();
// For each version
- pMemInfo=hRoot.FirstChild( "Version" ).Element();
+ TiXmlElement * pMemInfo=hRoot.FirstChild( "Version" ).Element();
for( ; pMemInfo; pMemInfo=pMemInfo->NextSiblingElement("Version"))
{
const char *name = pMemInfo->Attribute("name");