diff options
| author | Petr Mrázek | 2012-02-09 03:07:26 +0100 |
|---|---|---|
| committer | Petr Mrázek | 2012-02-09 03:07:26 +0100 |
| commit | 8f680dcf9482748b4a9ddaf3601c1a656622a994 (patch) | |
| tree | 6fe46b31f3a11bd3f27d48eef55f9f8cf72b705e /library/VersionInfoFactory.cpp | |
| parent | f7d8635be1dd00871e60c6adc388ac2cd865dd4b (diff) | |
| download | dfhack-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.cpp | 4 |
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"); |
